/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    word-wrap: break-word;
    white-space: normal;
}
.table-banner {
  display: flex;
  align-items: center;      /* centers emoji relative to text block */
  background-color: #dde6fe;
  padding: 3px 10px;
  border-bottom: 1px solid #e0e0e0;
  font-family: Lato; 
  color: #474646;
  font-weight: bold;
  gap: 8px;                 /* space between emoji and text */
  font-size: 0.9em;
  line-height: 1.1;
  border-radius: 6px; /* round edges */
  width: 100%;
}
.table-banner .text {
  flex: 1;                  /* text takes remaining space */
}
.table-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #d0dff02c;
  border-top: none;
  padding: 0 0;
  border-radius: 0 0 5px 5px;
  margin-bottom: 8px; /* Adds spacing below the section */
  width: 100%;
  display: block;
  overflow-x: auto; 
}
.table-collapsible-content table {
  background-color: #ffffff;
}

.table-collapsible-content.open {
  max-height: none;
}
.table-collapsible-content p {
  display: inline-block !important;
  padding: 5px 10px !important;
  font-size: 0.9em;
  line-height: 1.3 !important;
  margin-top: 0.5em !important;
  margin-bottom: 0 !important;
}
.table-collapsible-content ul {
  margin-top: 1rem;
  padding-left: 0.4rem;
  line-height: 1;
  font-size: 0.9em !important;
}
.table-collapsible-content li {
  margin-bottom: 0.4rem;
  line-height: 1;
  font-size: 1em !important;
}
.table-collapsible-content ul ul {
  margin-top: 0.1rem;
  line-height: 1;
  font-size: 1em !important;
}
.table-collapsible-content ul ul li {
  margin-bottom: 0.1rem;
  line-height: 1;
  font-size: 1em !important;
}
.table-collapsible-content li b {
  line-height: 1;
  font-size: 1em !important;
}

/* Static table banner */
.static-table-banner {
  display: flex;
  align-items: center;
  background-color: #d9dce2;
  padding: 4px 8px;
  border-bottom: 1px solid #e0e0e0;
  font-family: Lato; 
  color: #474646;
  font-weight: bold;
  gap: 8px;  
  font-size: 0.9em;
  line-height: 1.1;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 10px; /* Only difference is that it has space below section */
}
.table-banner .emoji {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;   /* increase this for larger icon */
  color: #199bd6;
}
.static-table-banner .emoji {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;   /* increase this for larger icon */
  color: #4d5052;
}
.table-static-content {
  background-color: #d0dff02c;
  border-left: 5px solid #199bd6;
  border-top: none;
  padding: 0 0;
  border-radius: 0 0 5px 5px;
  margin-bottom: 10px; /* Adds spacing below the section */
  width: 100%;
  display: block;
}
.table-static-content ul,
.table-static-content ol {
  margin: 0;                   /* Remove extra spacing */
  padding-left: 20px;          /* Optional: indent for list items */
  font-size: 0.9em;
}
.table-static-content p {
  display: inline-block !important;
  padding: 5px 10px !important;
  font-size: 0.9em;
  line-height: 1.3 !important;
  margin-top: 0.5em !important;
  margin-bottom: 0 !important;
}
.table-static-content li {
  margin: 0; /* override even the slight spacing */
  padding: 0;
}

/* Table with no vertical lines */
.table-no-vertical-lines {
  border-collapse: collapse;
  width: 100%;
}
.table-no-vertical-lines th,
.table-no-vertical-lines td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none !important;
  border-right: none !important;
  padding: 8px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.6) !important; 
  vertical-align: top; /* aligns all cell content at the top */
}
.table-no-vertical-lines th {
  background-color: rgba(255, 255, 255, 0.6) !important;
}
/* Make lists behave more like normal text blocks */
.table-no-vertical-lines ul {
  font-size: 1em;
  line-height: 1.2;
  margin: 0;
  padding-left: 1.2em;
  display: block;
}
/* Reduce bottom space between last list item and table border */
.table-no-vertical-lines ul:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
/* Optional: normalize list item alignment */
.table-no-vertical-lines li {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Compact Table Style */
/* Compact table with no vertical lines */
.compact-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9em;
  line-height: 1.2;
}
.compact-table th,
.compact-table td {
  text-align: left;
  padding: 6px 8px;
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top; 
}
/* Make lists behave more like normal text blocks */
.compact-table ul {
  font-size: 1em;
  line-height: 1.2;
  margin: 0;
  padding-left: 1.2em;
  display: block;
}
/* Reduce bottom space between last list item and table border */
.compact-table ul:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
/* Optional: normalize list item alignment */
.compact-table li {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Compact table with no vertical lines */
.compact-table-no-vertical-lines {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9em; /* slightly smaller text */
  line-height: 1.3;
}
.compact-table-no-vertical-lines th,
.compact-table-no-vertical-lines td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none !important;
  border-right: none !important;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.6) !important; 
  vertical-align: top;
  padding: 0.1em 0.1em;
  padding-left: 1px;
  padding-right: 1px;
  line-height: 1.1; 
}
.compact-table-no-vertical-lines ul {
  margin-top: 1rem;
  line-height: 1;
  font-size: 1em !important;
}
.compact-table-no-vertical-lines li {
  margin-bottom: 0.4rem;
  line-height: 1;
  font-size: 1em !important;
}

/* Table with expandable sections */
.expandable-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  background-color: #fafafa; /* base color */
}

.expandable-table th,
.expandable-table td {
  padding: 6px 8px;
  vertical-align: top;
  border-left: none !important;
  border-right: none !important;
}

/* Default row background */
.expandable-table tr {
  background-color: #fafafa;
}

/* Group header rows */
.group-header td {
  font-weight: bold;
  cursor: pointer;
  border-top: 2px solid #ccc;
}

.group-header:hover td {
  background-color: #dde6fe !important;
}

/* Indented child rows */
.child-row td {
  padding-left: 20px;
}

.table-compact-banner {
  display: flex;
  align-items: center;      /* centers emoji relative to text block */
  background-color: #dde6fe;
  padding: 2px 8px;
  border-bottom: 1px solid #e0e0e0;
  font-family: Lato; 
  color: #474646;
  font-weight: bold;
  gap: 8px;                 /* space between emoji and text */
  font-size: 0.8em;
  line-height: 1.0;
  border-radius: 4px; /* round edges */
  width: 100%;
}

/* Study Legend tables */
.study-legend {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1.0em;
}
.study-legend td {
  vertical-align: top;
  padding-top: 0;
  line-height: 1.5;
  border-left: 3px solid transparent;
}
.study-legend i {
  margin-right: 6px;
  color: #0077ff; /* soft blue accent */
  width: 18px;
  text-align: center;
}
.study-legend a {
  color: inherit;
  text-decoration: none;
}
.study-legend a:hover i {
  color: #1a4f8b;
}
.study-legend td:first-child {
  border-right: 1px solid #e0e0e0;
}

/* Resolved Known Issues table */
.icon-text-block {
  display: flex;
  align-items: center;      /* centers icon vertically with both text lines */
  gap: 8px;                 /* space between icon and text */
}
.icon-link i {
  font-size: 1.1em;
  color: #444;
  vertical-align: middle;
  min-width: 20px;
}
.text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.compact-table-no-vertical-lines {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compact-table-no-vertical-lines th,
.compact-table-no-vertical-lines td {
  padding: 6px;
  vertical-align: top;
}
.compact-table-no-vertical-lines th {
  text-align: left;
  border-bottom: 1px solid #ccc;
}