/* Mantém o PDV no layout original de desktop, sem alternar para coluna. */
[class~="min-h-[calc(100vh-4rem)]"][class~="flex"][class~="gap-0"] {
  display: flex !important;
  flex-direction: row !important;
  height: calc(100vh - 4rem) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

[class~="min-h-[calc(100vh-4rem)]"][class~="flex"][class~="gap-0"] > div:first-child {
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 1 1 0% !important;
  overflow: hidden !important;
  border-right: 1px solid rgb(55 65 81) !important;
}

[class~="min-h-[calc(100vh-4rem)]"][class~="flex"][class~="gap-0"] > div:nth-child(2) {
  width: 20rem !important;
  min-width: 20rem !important;
  max-height: none !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 0 0 20rem !important;
  overflow: hidden !important;
}

[class~="min-h-[calc(100vh-4rem)]"][class~="flex"][class~="gap-0"] > div:nth-child(2) > div:nth-child(2) {
  min-height: 0 !important;
}

/* Centraliza o montador sem alterar o layout por trás. */
[class*="fixed"][class*="inset-0"][class*="z-50"][class*="bg-black/70"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  padding: 1rem !important;
  overflow-y: auto !important;
}

[class*="fixed"][class*="inset-0"][class*="z-50"][class*="bg-black/70"] > [class*="max-w-2xl"] {
  width: min(42rem, calc(100vw - 2rem)) !important;
  max-width: 42rem !important;
  max-height: calc(100dvh - 2rem) !important;
  min-width: 0 !important;
  margin: auto !important;
  flex: 0 1 auto !important;
}

[class~="fixed"][class~="inset-0"][class~="z-50"][class~="bg-black/70"] > [class~="max-w-2xl"] > [class~="overflow-y-auto"] {
  min-height: 0;
}
