/* Responsive helpers for ERP frontend */

/* Make tables horizontally scrollable on small screens */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.table-responsive table {
  min-width: 640px; /* allow tables to scroll on narrow viewports */
  width: 100%;
}

/* Ensure modals/dialogs fit mobile viewports */
.modal,
.dialog,
[role="dialog"] {
  max-width: 100%;
  margin: 1rem;
}

/* Slightly increase mobile sidebar width for narrow devices */
@media (max-width: 480px) {
  .erp-sidebar-mobile {
    width: min(94vw, 18rem);
  }
}

/* Small tweaks to ensure main padding is comfortable on very small screens */
@media (max-width: 640px) {
  .erp-shell-offset main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
