/* Preserve the desktop layout while keeping forms and dashboards usable on narrow screens. */
main { min-width: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { max-width: 100%; }
article, p, h1, h3, h4 { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  #section-admin-orders > .grid, #section-dashboard > .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.flex { display: block; height: auto; min-height: 100dvh; overflow: auto; }
  body > aside { width: 100% !important; height: auto !important; }
  aside > div:first-child { height: 64px; }
  aside nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 8px !important; }
  aside nav > a { margin: 0 !important; padding: 10px !important; font-size: 11px; }
  aside > div:last-child { padding: 8px !important; }
  body > main { height: auto !important; min-height: 60vh; overflow: visible !important; }
  main > header { height: auto !important; min-height: 72px; gap: 12px; padding: 16px !important; flex-wrap: wrap; }
  main > header h1 { font-size: 20px !important; line-height: 1.5; }
  main > div.p-8 { padding: 16px; overflow: visible; }
  .glass-card.p-8 { padding: 20px; }
  [id$="-modal"] > div { padding: 20px; max-height: 90dvh; overflow-y: auto; }
}

button:disabled{opacity:.5;cursor:not-allowed}
[hidden]{display:none!important}
