/* ============================================================
   Revisão de stock (telemóvel) — camada própria, fora do #app
   ============================================================ */
.rv-root { display: none; position: fixed; inset: 0; z-index: 40; background: #fff; justify-content: center; }
.rv-col { width: 100%; max-width: 480px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #fff; position: relative; }
.rv-corpo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.rv-campo { padding: 12px 16px 0; }
.rv-campo label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 5px; }
.rv-campo input[type="text"], .rv-campo input[type="date"] {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; font-family: inherit; color: var(--text);
}
.rv-campo .combo-wrap input[type="text"] { padding-right: 34px; }
.rv-linha { display: flex; gap: 10px; padding: 0 16px; }
.rv-linha .rv-campo { flex: 1; min-width: 0; padding: 12px 0 0; }
.rv-chip { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 3px 10px; background: #E9F7EF; color: #1D7A44; }
.combo-item { display: flex; justify-content: space-between; gap: 10px; }
.combo-marca { color: #B3261E; font-size: 11px; font-weight: 700; white-space: nowrap; }

.rv-aviso-topo { margin: 12px 16px 0; background: #EAF2FA; color: var(--blue); border-radius: 10px; padding: 9px 12px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-aviso-topo button { border: none; background: none; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 0; }
.rv-aviso-topo.amarelo { background: #FFF7E0; color: #6B5300; }
.rv-bloqueio { margin: 14px 16px 0; background: #FFF7E0; border: 1px solid #F0DC9A; color: #6B5300; border-radius: 12px; padding: 13px 14px; font-size: 14px; line-height: 1.5; }
.rv-vazio { margin: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

.rv-cat { margin: 10px 16px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rv-ch { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 14px; font-size: 15px; font-weight: 700; background: #FAFBFC; border: none; cursor: pointer; text-align: left; font-family: inherit; color: var(--text); }
.rv-pr { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 9px; background: #EEF0F3; color: #6B7480; }
.rv-pr.fe { background: #E9F7EF; color: #1D7A44; }
.rv-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid #F0F2F4; }
.rv-item .tx { flex: 1; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.rv-item .tx small { color: var(--muted); font-size: 13px; }
.rv-item .tx em { display: block; font-style: normal; font-size: 12px; color: #B3261E; font-weight: 700; margin-top: 2px; cursor: pointer; }
.rv-item.pend { animation: rvPend 1.6s ease; }
@keyframes rvPend { 0%, 60% { background: #FFF3CF; } 100% { background: transparent; } }
.rv-bt { width: 46px; height: 46px; border-radius: 11px; border: 2px solid #D5DAE2; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #C5CAD3; background: #fff; cursor: pointer; flex-shrink: 0; padding: 0; font-family: inherit; }
.rv-bt.ok { background: #1D7A44; border-color: #1D7A44; color: #fff; }
.rv-bt.no { background: #D94B3F; border-color: #D94B3F; color: #fff; }

.rv-barra { flex-shrink: 0; background: #fff; border-top: 1px solid var(--border); padding: 11px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 16px rgba(15,30,60,.06); }
.rv-bf { font-size: 13px; color: var(--muted); font-weight: 600; } .rv-bf b { color: var(--text); }
.rv-btn { border-radius: 11px; padding: 12px 18px; font-size: 15px; font-weight: 700; background: var(--blue); color: #fff; border: none; cursor: pointer; font-family: inherit; }
.rv-btn.dis { background: #DDE1E7; color: #8A93A0; } .rv-btn:disabled { background: #DDE1E7; color: #8A93A0; cursor: default; }
.rv-btn.sec { background: #fff; color: var(--text); border: 1px solid var(--border); } .rv-btn.grande { width: 100%; max-width: 320px; }
.rv-toast { position: absolute; left: 16px; right: 16px; bottom: 86px; z-index: 5; background: #1B1F24; color: #fff; border-radius: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.rv-toast.erro { background: #B3261E; }

.rv-step { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 6px; }
.rv-stb { width: 52px; height: 52px; border-radius: 14px; border: 1px solid #CBD2DC; background: #fff; font-size: 26px; color: #4A5568; cursor: pointer; font-family: inherit; padding: 0; }
.modal-sheet .rv-step input { width: 96px; height: 58px; text-align: center; font-size: 34px; font-weight: 700; border: 2px solid var(--blue); border-radius: 12px; padding: 0; }
.rv-dica { text-align: center; font-size: 12px; color: var(--muted); min-height: 16px; }
.rv-dica.erro { color: #B3261E; font-weight: 700; }

.rv-ok { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.rv-ok-ico { font-size: 64px; } .rv-ok h2 { margin: 0; font-size: 22px; } .rv-ok-sub { margin: 0 0 14px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Página principal: o 2.º botão (verde) e a faixa "Retomar" */
.home-plus-wrap.seg { padding-top: 6px; }
.home-plus-btn.verde { background: #1D9E75; }
.rv-retomar { margin-top: 8px; border: none; background: #E9F7EF; color: #1D7A44; font-size: 13px; font-weight: 700; border-radius: 20px; padding: 6px 14px; cursor: pointer; font-family: inherit; }
