/* Material List pages: professional, uniform layout */

.ml-subheader {
  color: var(--c-primary);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.ml-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  color: var(--c-primary);
  font-size: 1rem;
  font-weight: 600;
}

.ml-meta-row .ml-meta-item {
  white-space: nowrap;
}

.ml-meta-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: var(--c-primary);
  font-size: 1rem;
  font-weight: 600;
}

.ml-meta-column .ml-meta-item {
  white-space: nowrap;
}

.ml-locked-badge {
  color: #b00020;
  font-size: 0.95rem;
  font-weight: 800;
}

/* All Material Lists page */
.ml-program-group {
  margin-bottom: 0.75rem;
}

.ml-program-group-header {
  background-color: rgba(0, 51, 102, 0.06);
  border: 1px solid rgba(0, 51, 102, 0.16);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.ml-program-group-header:hover {
  background-color: rgba(0, 51, 102, 0.10);
  border-color: rgba(0, 51, 102, 0.22);
}

.ml-program-group-header .ml-chevron {
  transition: transform 0.2s ease;
  font-size: 1rem;
  opacity: 0.9;
}

.ml-program-group-header[aria-expanded="true"] .ml-chevron {
  transform: rotate(180deg);
}

.ml-program-group-body {
  padding: 0.5rem 0 0.25rem 1.5rem;
  margin: 0.5rem 0 1rem;
  border-left: 3px solid rgba(0, 51, 102, 0.25);
}

.ml-list-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 51, 102, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ml-list-row:last-child {
  border-bottom: none;
}

.ml-list-row:hover {
  background-color: rgba(22, 30, 84, 0.04);
}

.ml-list-name-link {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 600;
}

.ml-list-name-link:hover {
  text-decoration: underline;
  color: var(--c-primary);
}

/* Pagination */
.ml-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.ml-pagination a {
  text-decoration: none !important;
}

/* Material List table action buttons (match Orders page sizing) */
.btn-ml {
  margin-right: 0.4rem;
  margin-bottom: 0.2rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

/* Override global ghost-* min-width so table buttons aren't huge */
.btn-ml.ghost-button,
.btn-ml.ghost-blue,
.btn-ml.ghost-yellow,
.btn-ml.ghost-red {
  min-width: 0 !important;
  width: auto !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.82rem !important;
}

