/* Simulações de Estoque e compras. Usa gestao.css (g-*). */
.es-app { height: 100%; display: flex; flex-direction: column; background: #f8fafc; }
.es-top { background: #021f23; color: #fff; padding: 40px 12px 11px; display: flex; gap: 10px; align-items: center; }
.es-top > span { font-size: 22px; line-height: 1; }
.es-top b { display: block; font-size: 13.5px; }
.es-top small { font-size: 10.5px; opacity: .8; }
.es-b { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.es-info { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 9px; font-size: 11.5px; }
.es-it { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 9px 10px; }
.es-it i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.es-it div { flex: 1; }
.es-it b { display: block; font-size: 12.5px; }
.es-it small { font-size: 10.5px; color: #64748b; }
.es-it span { font-size: 12px; font-weight: 700; color: #94a3b8; }
.es-it.ok i { background: #16a34a; color: #fff; }
.es-it.ok span { color: #15803d; }
.es-it.at { border-color: #0f766e; box-shadow: 0 0 0 3px #ccfbf1; }
.es-it.at span { color: #0f766e; }
.es-cam { height: 300px; background: radial-gradient(circle at 50% 45%, #3f3f46, #09090b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; }
.es-mira { position: relative; width: 200px; height: 120px; border: 3px solid #5eead4; border-radius: 14px; display: grid; place-items: center; }
.es-barras { width: 150px; height: 70px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 8px #fff; background-image: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px); }
.es-mira i { position: absolute; left: 8px; right: 8px; height: 2px; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: esLinha 1.4s ease-in-out infinite alternate; }
@keyframes esLinha { from { top: 15%; } to { top: 85%; } }
.es-cam small { font-size: 11.5px; opacity: .85; }
.es-lido { background: #fff; border: 1px solid #99f6e4; border-radius: 12px; padding: 10px; font-size: 12.5px; }
.es-lido small { display: block; font-size: 10.5px; color: #0f766e; }
.es-qtd { font-size: 46px; font-weight: 800; text-align: center; background: #fff; border-radius: 14px; border: 2px solid #0f766e; padding: 8px; }
.es-qtd span { font-size: 16px; color: #64748b; margin-left: 6px; }
.es-tec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.es-tec span { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center; padding: 9px; font-size: 16px; font-weight: 600; }
.es-bt { background: #0f766e; color: #fff; border-radius: 12px; text-align: center; padding: 12px; font-weight: 700; margin-top: auto; }
.es-ok { margin-top: auto; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; }
.es-ok small { font-weight: 400; }

.es-abc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 11px; }
.es-abc--A { background: #ccfbf1; color: #025e67; }
.es-abc--B { background: #fef3c7; color: #92400e; }
.es-abc--C { background: #f1f5f9; color: #475569; }
.es-st { font-size: 10px; border-radius: 999px; padding: 2px 8px; font-weight: 700; white-space: nowrap; }
.es-st--g { background: #dcfce7; color: #166534; }
.es-st--r { background: #fee2e2; color: #991b1b; }
.es-st--a { background: #fef3c7; color: #92400e; }
.es-ficha { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.es-tot td { background: #f8fafc; }
.es-lado { display: flex; flex-direction: column; gap: 10px; }
.es-margem { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.es-margem small { font-size: 10.5px; color: #64748b; }
.es-margem b { font-size: 17px; text-align: right; }
.es-margem .es-barra, .es-margem > span { grid-column: 1 / -1; }
.es-barra { height: 10px; border-radius: 5px; background: #dcfce7; overflow: hidden; }
.es-barra i { display: block; height: 100%; background: #dc2626; }
.es-margem > span { font-size: 12px; }
.es-margem > span b { font-size: 18px; color: #15803d; }
.es-alerta { background: #fffbeb; border-color: #fde68a; color: #78350f; font-size: 11.5px; }
.es-sug { display: flex; flex-direction: column; gap: 2px; background: #f0fdfa; border: 1px solid #99f6e4; color: #024a51; border-radius: 12px; padding: 9px 12px; font-size: 11.5px; }
.es-cot td.best { background: #dcfce7; color: #166534; font-weight: 700; }
.es-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.es-cards .gp-card { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .es-mira i { animation: none; top: 50%; } }
