.pg-almox .alm-cab { flex-wrap: wrap; gap: 10px; }
.pg-almox .alm-cab p { margin: 4px 0 0; }
.pg-almox .tab-wrap { margin: 10px 0; }
.alm-estoque small { display: block; }
.alm-alerta { color: var(--am, var(--cor-manutencao)); font-weight: 650; }
.alm-estoque tr.alm-novo td { background: var(--p2); }
.alm-estoque .linha { flex-wrap: wrap; }
.alm-dialog { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 28px); padding: 18px;
  border: 1px solid var(--bd); border-radius: 12px; background: var(--p1); color: var(--tx); }
.alm-dialog::backdrop { background: var(--sobre-imagem); }
.alm-hist { width: min(960px, calc(100vw - 24px)); }
.alm-form { display: grid; gap: 12px; margin-top: 12px; }
.alm-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.alm-toda { grid-column: 1 / -1; }
.alm-form label:not(.chk) { display: flex; flex-direction: column; gap: 4px; }
.alm-form input:not([type=checkbox]), .alm-form select, .alm-form textarea { width: 100%; min-width: 0; }
.alm-form .chk { min-height: 36px; align-self: end; }
.alm-form p { margin: 0; }
.alm-form :user-invalid { border-color: var(--cor-vermelha); }
.alm-form button:disabled { opacity: .7; }
@media (max-width: 680px) {
  .alm-grade { grid-template-columns: 1fr; }
  .alm-estoque thead { display: none; }
  .alm-estoque tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 10px; border-bottom: 1px solid var(--bd); }
  .alm-estoque td { display: block; border: 0; padding: 3px; min-width: 0; overflow-wrap: anywhere; }
  .alm-estoque td:first-child, .alm-estoque td:last-child { grid-column: 1 / -1; }
  .alm-estoque td:nth-child(4)::before { content: 'Mín. / máx. '; color: var(--sub); }
  .pg-almox .filtros label { min-width: 0; max-width: 100%; }
}
