/* M76 · portal de pedidos da Fábrica de Massa — celular primeiro */
:root{ --azul:#1b4f8a; --azul-2:#1f3a5f; --tinta:#0f1b2d; --muted:#5b6b82; --linha:#e6ecf3; --bg:#f6f8fb; --branco:#fff; --verde:#15803d; --vermelho:#b91c1c; --ambar:#b45309; --raio:14px; }
*{ box-sizing:border-box; margin:0; padding:0 }
body{ font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--tinta); background:var(--bg); line-height:1.5; -webkit-font-smoothing:antialiased; }
[hidden]{ display:none !important }
.topo{ position:sticky; top:0; z-index:5; background:var(--branco); border-bottom:1px solid var(--linha); display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 16px; }
.marca{ display:flex; align-items:center; gap:10px }
.marca img{ height:36px; width:auto }
.marca b{ display:block; font-size:15px; line-height:1.1; color:var(--azul-2) }
.marca small{ display:block; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em }
.topo-dir{ display:flex; align-items:center; gap:8px }
.wrap{ max-width:720px; margin:0 auto; padding:14px 16px 40px }
.card{ background:var(--branco); border:1px solid var(--linha); border-radius:var(--raio); padding:16px; margin-bottom:14px; }
.card h1{ font-size:22px; margin-bottom:6px }
.card h2{ font-size:17px; margin-bottom:8px }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:6px }
.muted{ color:var(--muted); font-size:13px }
.login label{ display:block; font-size:13px; font-weight:600; margin:12px 0 4px }
input[type=email], input[type=password], input[type=text], input[type=number], select, textarea{ width:100%; font:inherit; font-size:16px; padding:10px 12px; border:1px solid var(--linha); border-radius:10px; background:#fff; }
textarea{ min-height:90px; resize:vertical }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-weight:700; font-size:15px; padding:11px 18px; border-radius:11px; border:1.5px solid transparent; cursor:pointer; background:#eef2f7; color:var(--azul-2); }
.btn:disabled{ opacity:.55; cursor:default }
.btn-primary{ background:var(--azul); color:#fff }
.btn-ghost{ background:#fff; border-color:var(--linha) }
.btn-danger{ background:#fff; border-color:#f3c7c7; color:var(--vermelho) }
.btn-link{ background:none; color:var(--azul); font-weight:600; padding:8px 4px }
.btn-sm{ font-size:13px; padding:7px 12px }
.btn-bloco{ width:100%; margin-top:10px }
.login .btn-primary{ width:100%; margin-top:14px }
.erro{ color:var(--vermelho); font-size:13px; margin-top:8px }
.aviso{ background:#fff7ed; border-color:#fed7aa; color:#7c2d12; font-size:14px }
.pill{ font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; background:#eef2f7; color:var(--azul-2) }
.pill.ok{ background:#dcfce7; color:var(--verde) } .pill.warn{ background:#fef3c7; color:var(--ambar) } .pill.bad{ background:#fee2e2; color:var(--vermelho) }
.pedido-datas{ display:flex; gap:14px; flex-wrap:wrap; font-size:14px; margin-bottom:10px }
.pedido-datas b{ display:block; font-size:16px }
.contagem{ font-weight:800; color:var(--azul) } .contagem.perto{ color:var(--ambar) } .contagem.vencido{ color:var(--vermelho) }
.itens{ border-top:1px solid var(--linha) }
.item{ display:grid; grid-template-columns:1fr auto; gap:6px 10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--linha) }
.item .nome{ font-weight:700 } .item .preco{ font-size:12.5px; color:var(--muted) }
.qtd{ display:flex; align-items:center; gap:4px }
.qtd button{ width:40px; height:40px; border-radius:10px; border:1.5px solid var(--linha); background:#fff; font-size:20px; font-weight:700; color:var(--azul-2); cursor:pointer }
.qtd input{ width:64px; text-align:center; font-weight:700; padding:8px 4px }
.item .linha-total{ grid-column:1 / -1; text-align:right; font-size:13px; color:var(--muted) }
.total{ display:flex; justify-content:space-between; align-items:baseline; padding:12px 0 4px; font-size:15px }
.total b{ font-size:20px }
.acoes{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px }
.acoes .btn{ flex:1 1 140px }
.saldo{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin:8px 0 }
.saldo .n{ font-size:28px; font-weight:800; color:var(--azul-2); line-height:1 } .saldo .l{ font-size:12.5px; color:var(--muted) }
.hist{ border:1px solid var(--linha); border-radius:12px; padding:12px; margin-bottom:10px }
.hist-head{ display:flex; justify-content:space-between; gap:8px; align-items:center; flex-wrap:wrap; cursor:pointer }
.hist-head b{ font-size:15px }
.linha-tempo{ display:flex; gap:4px; margin:8px 0; }
.linha-tempo span{ flex:1; height:6px; border-radius:3px; background:#e6ecf3 } .linha-tempo span.on{ background:var(--verde) } .linha-tempo span.bad{ background:var(--vermelho) }
.passos{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--muted) }
table.conf{ width:100%; border-collapse:collapse; font-size:13px; margin-top:8px }
table.conf th, table.conf td{ text-align:left; padding:5px 4px; border-bottom:1px solid var(--linha) }
table.conf td.n, table.conf th.n{ text-align:right }
.faltou{ color:var(--vermelho); font-weight:700 }
.docs{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px }
.novo{ display:inline-block; background:var(--vermelho); color:#fff; font-size:10px; font-weight:800; padding:2px 6px; border-radius:6px; margin-left:4px; vertical-align:middle }
.detalhe{ margin-top:8px }
.modal-fundo{ position:fixed; inset:0; background:rgba(15,27,45,.45); display:flex; align-items:flex-end; justify-content:center; z-index:20; padding:0 }
.modal{ background:#fff; border-radius:16px 16px 0 0; padding:18px 16px 24px; width:100%; max-width:560px }
.modal h3{ font-size:17px; margin-bottom:8px }
.toast{ position:fixed; left:50%; bottom:18px; transform:translateX(-50%); background:var(--azul-2); color:#fff; padding:10px 16px; border-radius:10px; font-size:14px; z-index:30; max-width:92vw }
.rodape{ text-align:center; margin-top:8px; font-size:12px }
@media (min-width:600px){ .modal-fundo{ align-items:center; padding:16px } .modal{ border-radius:16px } }
