/* [VENDEDOR-APP-0212] BG Vendas — as cores do BG Atacado: verde #1A5C3A e dourado #C9A84C; telas sem muita rolagem */
[hidden] { display: none !important; }
:root { --v: #1A5C3A; --v2: #2E8B57; --o: #C9A84C; --o2: #d9bd6a; --f: #F4F7F5; --t: #1C1C1E; --c: #6b7470; --r: 14px; --l: #e3ebe6;
        --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--f); color: var(--t); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: calc(8px + var(--st)) 12px 8px; background: var(--v); color: #fff; }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--o); flex: none; }
.marca b { display: block; font-size: 17px; }
.marca small { display: block; font-size: 10.5px; color: var(--o2); font-weight: 700; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-sair { border: 1.5px solid var(--o); background: none; color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 800; }

/* faixa do pedido em andamento */
.barra-ped { position: sticky; top: calc(54px + var(--st)); z-index: 18; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; padding: 6px 8px;
             background: #fff; border-bottom: 1px solid var(--l); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.barra-ped button, .barra-ped label { border: 1.5px solid var(--l); background: var(--f); border-radius: 10px; padding: 4px 8px; text-align: left; min-width: 0; }
.barra-ped small { display: block; font-size: 10px; color: var(--c); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-ped b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-ped .falta { color: #c0392b; }
.bp-tab select { border: 0; background: none; font-weight: 800; font-size: 12.5px; color: var(--v); max-width: 34vw; padding: 0; }
.bp-tot { background: var(--v) !important; border-color: var(--v) !important; color: #fff; text-align: right !important; }
.bp-tot small { color: var(--o2); }

main { padding: 0 0 calc(96px + var(--sb)); min-height: 60vh; }
.busca { padding: 8px 10px 4px; }
.busca input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 99px; border: 2px solid var(--l); outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%231A5C3A' stroke-width='2.4'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") 13px center no-repeat; }
.busca input:focus { border-color: var(--v2); }
.chips { display: flex; gap: 6px; padding: 4px 10px 6px; }
.chip { border: 1.5px solid var(--l); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 800; color: var(--c); }
.chip.on { background: var(--v); border-color: var(--v); color: #fff; }

.lista { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.linha { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 1.5px solid transparent; border-radius: var(--r); padding: 9px 10px;
         box-shadow: 0 1px 2px rgba(0,0,0,.05); text-align: left; color: inherit; }
.linha.sel { border-color: var(--o); background: #fffdf5; }
.linha.cli > div:first-child, .linha.ped > div:first-child, .linha .pd { flex: 1; min-width: 0; }
.linha b { display: block; font-size: 14px; line-height: 1.25; }
.linha small { display: block; font-size: 11.5px; color: var(--c); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cod { font-size: 12px; font-weight: 800; color: var(--c); text-align: right; }
.cod em { display: block; font-style: normal; font-size: 10px; background: var(--o); color: var(--t); border-radius: 6px; padding: 1px 5px; margin-top: 3px; }
.pf { width: 46px; height: 46px; border-radius: 10px; background: var(--f); display: grid; place-items: center; font-size: 22px; overflow: hidden; flex: none; }
.pf img { width: 100%; height: 100%; object-fit: cover; }
.pr { display: block; margin-top: 3px; font-weight: 900; color: var(--v); font-size: 15px; }
.pr s { font-weight: 600; color: var(--c); font-size: 11px; margin-left: 6px; }
.qt { display: flex; align-items: center; gap: 4px; flex: none; }
.qt button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--v); color: #fff; font-size: 18px; font-weight: 800; }
.qt button.add { width: 42px; height: 42px; border-radius: 50%; font-size: 24px; background: var(--o); color: var(--t); }
.qt input { width: 48px; height: 34px; text-align: center; border: 1.5px solid var(--l); border-radius: 8px; font-weight: 800; }
.carregando, .vazio { text-align: center; padding: 28px 20px; color: var(--c); }
.vazio b { display: block; font-size: 38px; margin-bottom: 6px; }
#mais { padding: 6px 10px; }
.pad { padding: 0 12px; }

.itens { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "d x" "q t"; gap: 6px 8px; background: #fff; border-radius: var(--r); padding: 9px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.item .id { grid-area: d; min-width: 0; } .item .qt { grid-area: q; } .item .it { grid-area: t; align-self: center; color: var(--v); }
.item .x { grid-area: x; border: 0; background: none; color: #c0392b; font-size: 16px; }
.item .id b { display: block; font-size: 13.5px; } .item .id small { color: var(--c); font-size: 11.5px; }
.fim { position: sticky; bottom: calc(86px + var(--sb)); margin: 6px 8px 0; background: #fff; border-radius: var(--r); padding: 10px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.campos label { font-size: 10.5px; font-weight: 800; color: var(--c); }
.campos input { display: block; width: 100%; margin-top: 2px; padding: 8px; border: 1.5px solid var(--l); border-radius: 8px; text-transform: uppercase; }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 2px; }
.tot span { font-size: 11px; font-weight: 800; color: var(--c); } .tot b { font-size: 22px; color: var(--v); }
.acoes { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

.botao { display: block; width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--v); color: #fff; font-weight: 800; font-size: 15px; }
.botao.claro { background: #fff; color: var(--v); border: 2px solid var(--v); }
.botao:disabled { opacity: .55; }

.dir { text-align: right; flex: none; } .dir b { font-size: 14px; }
.st { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--f); color: var(--c); margin-top: 3px; }
.st-aberto { background: #fff4d6; color: #8a6a00; } .st-faturado, .st-fechado { background: #dff3e7; color: var(--v); } .st-cancelado { background: #fde3e0; color: #c0392b; }

.login { max-width: 380px; margin: 0 auto; padding: 34px 22px; text-align: center; }
.login img { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--o); }
.login h1 { margin: 10px 0 2px; color: var(--v); } .login p { margin: 0 0 18px; color: var(--c); font-size: 14px; }
.login label { display: block; text-align: left; font-size: 11px; font-weight: 800; color: var(--c); margin-bottom: 10px; }
.login input, .login select { display: block; width: 100%; margin-top: 3px; padding: 13px; border: 2px solid var(--l); border-radius: 12px; font-size: 16px; }
.login input:focus, .login select:focus { outline: none; border-color: var(--v2); }
.erro-login { margin-top: 14px; color: #c0392b; font-weight: 700; font-size: 13.5px; }

.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
        border-top: 1px solid var(--l); padding-bottom: var(--sb); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.abas button { position: relative; border: 0; background: none; padding: 7px 2px 8px; font-size: 11px; font-weight: 700; color: var(--c); }
.abas button i { display: block; font-style: normal; font-size: 19px; }
.abas button.on { color: var(--v); }
.abas button.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--o); border-radius: 0 0 3px 3px; }
.abas em { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: #d93025; color: #fff;
           font-style: normal; font-size: 11px; line-height: 18px; padding: 0 5px; }
.abas .dev { grid-column: 1 / -1; text-align: center; font-size: 10.5px; color: var(--c); padding: 3px 0 5px; border-top: 1px solid #eef2ef; }
.abas .dev b { color: var(--v); }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 20px; }
.modal .caixa { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 380px; }
.ok { text-align: center; } .ok b { font-size: 44px; display: block; } .ok h3 { margin: 6px 0; color: var(--v); } .ok p { color: var(--c); margin: 0 0 8px; }
.aviso { position: fixed; left: 12px; right: 12px; bottom: calc(100px + var(--sb)); z-index: 60; background: var(--v); color: #fff; padding: 12px 14px; border-radius: 12px;
         font-weight: 700; font-size: 13.5px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.aviso.erro { background: #c0392b; }

@media (min-width: 760px) { main, .barra-ped { max-width: 900px; margin-left: auto; margin-right: auto; } .barra-ped { border-radius: 0 0 12px 12px; } }
.linha small .disp { color: #b26a00; font-weight: 800; }
.login select { background: #fff; font-weight: 700; appearance: auto; }
/* [GESTORMOBILE-0212] o nome do sistema no topo: Gestor branco, Mobile amarelo, MI + ® */
.marca b.gmm { font-size: 18px; letter-spacing: .2px; color: #fff; }
.marca b.gmm span { color: #F5C518; }
.marca b.gmm sup { font-size: 10px; margin-left: 1px; }
.marca small { text-transform: none; letter-spacing: .2px; font-size: 11.5px; }
.topo-dir { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topo-dir small { font-size: 11px; font-weight: 800; color: var(--o2); max-width: 32vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.login h1 { margin-bottom: 18px; }
