/* ====== XD-like styling for detail view ====== */

.types {
  --syn-blue: #003770;
  --syn-light-blue: #bfddea;
  --syn-card: #eef1f3;
  --syn-border: #dfe6ee;
  --syn-text: #1b1f23;
}

/* Header (REFERENCE 1) */
.types .panel-header {
  background: var(--syn-card);
  padding: 22px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.types .panel-header__meta {
  color: #466e8f;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.types .panel-header__title {
  color: #466e8f;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

/* Lab buttons (REFERENCE 1) */
.types .lab-block {
  margin-bottom: 22px;
  padding: 22px;
}

.types .lab-block__title {
  color: var(--syn-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.types .lab-block__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.types .lab-block__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--syn-blue);
  color: var(--syn-blue);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

/* Hover effect for lab buttons */
.types .lab-block__links a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover on inactive buttons */
.types .lab-block__links a:hover {
  background: var(--syn-blue);
  color: #ffffff;
  text-decoration: none;
}

/* Active button (already selected) */
.types .lab-block__links a.active,
.types .lab-block__links a.is-active,
.types .lab-block__links a[aria-current="page"] {
  background: var(--syn-blue);
  color: #ffffff;
}

/* Optional: keep active stable on hover */
.types .lab-block__links a.active:hover,
.types .lab-block__links a.is-active:hover,
.types .lab-block__links a[aria-current="page"]:hover {
  background: var(--syn-blue);
  color: #ffffff;
}

/* Generic cards (REFERENCE 2 / 3) */
.types .section.section--card {
  background: var(--syn-card);
  padding: 22px;
  border-radius: 4px;
  margin-bottom: 26px;
}

.types .section-heading {
  color: var(--syn-blue);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px 0;
}

.types .section-heading.subpanelName{
    margin: 0;
}

.types .subpanel-inner{
    margin-bottom: 14px;
}

.types .section-title {
  color: #003770;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

/* Material table emphasis */
.types .material-table tbody td {
  color: #003770;
  font-size: 15px;
  font-weight: 400;
}

/* Tables (REFERENCE 1) */
.types .syn-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--syn-border);
  border-radius: 4px;
  overflow: hidden;
}

.types .syn-table thead th {
  background: var(--syn-light-blue);
  text-align: left;
  padding: 14px 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--syn-blue);
  border-bottom: 1px solid var(--syn-border);
}

.types .syn-table tbody td {
  padding: 14px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--syn-border);
  color: var(--syn-blue);
  font-size: 18px;
}

.types .syn-table tbody tr:last-child td {
  border-bottom: 0;
}

/* remove heavy vertical grid lines */
.types .syn-table th,
.types .syn-table td {
  border-left: 0;
  border-right: 0;
}

/* Links inside tables */
.types .syn-link {
  color: var(--syn-blue);
  text-decoration: underline;
}

/* Gene List Multicolumn */
.types .gene-list-multicolumn {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px 16px;
  padding-top: 10px;
}
.types .gene-list-multicolumn .gene-item {
  color: var(--syn-text);
  font-size: 15px;
}

/* Text blocks */
.types .table-information {
  line-height: 1.55;
  color: var(--syn-blue);
  font-size: 18px;
}

/* OMIM links */
.types .syn-table tbody a {
  color: gray;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
}

.types .syn-table tbody a:hover {
  color: #002a57;
}

/* Back button (REFERENCE 3) */
.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-bottom: 12px;
}

.f-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid #003770;
  background: transparent;
  color: #003770 !important;
  text-decoration: none;
  font-weight: 600;
}

.f-back-button::before {
  content: none;
}

/* Back button hover (REFERENCE style) */
.f-back-button {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover state */
.f-back-button:hover {
  background-color: #003770;
  color: #ffffff !important;
  text-decoration: none;
}

.outer-backbutton{
    display: flex;
    flex-direction: column;
    align-items: end;
}
.types .table-information--spaced {
  margin-top: 12px;
}