@import url("workflow-overrides.css");

/* Refinements requested during the July 2026 assessment and admin review. */

/* Keep the selected control itself clear without leaving a purple block behind it. */
.check-tile:has(input:checked),
.choice:has(input:checked) {
  background: transparent !important;
}

/* Selected-route sections no longer need the indentation used by optional problem selectors. */
.selected-route-group {
  margin-left: 0;
}

.selected-route-group .follow-up-heading {
  background: #f7f8fb;
  color: #17182b;
}

.dashboard-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dashboard-stat-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.dashboard-stat-link article {
  height: 100%;
}

.dashboard-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.dashboard-row[hidden] {
  display: none !important;
}

.dashboard-filter-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--teal);
  background: var(--pale);
}

/* Reconciled workspace navigation: links wrap cleanly instead of sitting inside
   a narrow horizontal scroller, and the navigation layer remains clickable over
   dashboard content at every supported viewport. */
.site-header-wrap {
  position: relative;
  z-index: 100;
}

.workspace-nav-shell {
  position: relative;
  z-index: 101;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  align-items: start;
  gap: 12px;
}

.workspace-nav {
  position: relative;
  z-index: 102;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  overflow: visible;
  scrollbar-width: none;
}

.workspace-nav::-webkit-scrollbar {
  display: none;
}

.workspace-nav a {
  position: relative;
  z-index: 103;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .62rem .86rem;
  border: 1px solid transparent;
  border-radius: 10px;
  pointer-events: auto;
  cursor: pointer;
  line-height: 1.2;
}

.workspace-nav a:hover,
.workspace-nav a:focus-visible {
  border-color: #cbb9e8;
  background: #f7f2ff;
  color: #321270;
  text-decoration: none;
  outline: none;
}

.workspace-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(104, 39, 218, .22);
}

.workspace-nav a[aria-current="page"] {
  border-color: #d8c9ef;
  background: #efe7ff;
  color: #321270;
}

.workspace-identity {
  position: relative;
  z-index: 102;
  min-width: 0;
  min-height: 58px;
}

@media (max-width: 980px) {
  .workspace-nav-shell {
    grid-template-columns: 1fr;
  }

  .workspace-identity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  .dashboard-filter-banner {
    display: grid;
  }

  .workspace-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .workspace-nav a {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .workspace-nav {
    grid-template-columns: 1fr;
  }
}
