/* HappyPay Portal scoped module presentation overrides.
 * Keep module contracts and backend routes unchanged.
 */

/* Active TAB panels occupy the full workspace width. Internal tables, facts,
 * forms, status grids and configuration fields may remain multi-column.
 */
html:not([data-layout="mobile"]) .shell-wide .module-function-grid,
html:not([data-layout="mobile"]) .shell-wide .workflow-grid,
html:not([data-layout="mobile"]) .shell-wide .platform-operations-grid,
html:not([data-layout="mobile"]) .shell-wide .customer-grid,
html:not([data-layout="mobile"]) .shell-wide .system-access-grid,
html:not([data-layout="mobile"]) .shell-wide .system-access-domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* 04.7 moved to 08.3.1. 04.8 remains in the navigation contract as a hidden
 * compatibility alias for the historical Provider initialization route.
 */
li:has(> a.submenu-link[href="/modules/04#04.8"]),
a.submenu-link[href="/modules/04#04.8"],
.module-workspace [id="04.8"] {
  display: none;
}

/* Historical 09 domain wrappers remain visually neutral if older cached markup
 * reaches this stylesheet. Current 09 pages use the shared TAB controller.
 */
.system-access-workspace .system-access-grid,
.system-access-workspace .system-access-grid.system-access-domains,
.system-access-workspace .system-access-domain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.system-access-workspace .system-access-domain {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.system-access-workspace .system-access-domain-heading {
  display: none;
}

.system-access-workspace .system-access-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Only the landing/menu link list may use two columns. */
.access-landing-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.access-landing-links .submenu-group-label {
  display: none;
}

@media (max-width: 760px) {
  .access-landing-links {
    grid-template-columns: minmax(0, 1fr);
  }
}
