#block-sdgs-content {
  font-family: Arial, Sans-Serif;
}
#index-banner {
}
.info-block .button-row {
  padding-top: 15px;
  padding-bottom: 15px;
}
#description-banner {
  padding-top: 20px;
  padding-bottom: 20px;
}
#description-banner p {
  line-height: 2rem;
  padding: 30px;
}
#howto-banner {
  text-align: center;
}
#howto-banner #learn h4 {
  font-size: 3rem;
  line-height: 110%;
  margin: 2.8rem 0 1.68rem 0;
  color: #004494 !important;
}
#howto-banner #learn .next-5-steps-div {
  margin: 2.5rem 0 2.5rem 0;
  font-size: 24px;
  font-weight: bold;
  color: #004494;
}
#howto-banner .card-panel {
  box-shadow: none!important;
  border: 1px solid #eaeaea!important;
  transition: box-shadow .25s,-webkit-box-shadow .25s;
  padding: 24px;
  margin: 0.5rem 0 1rem 0;
  border-radius: 2px;
  background-color: #fff;
}
#howto-banner .card-panel .step-points {
  margin-right: 12px;
  margin-bottom: 5px;
}
#howto-banner .card-panel p {
  line-height: 2rem;
  padding: 20px;
  font-size: 20px;
}
#howto-banner .card-panel p u {
  font-size: 22px;
}
#extra-info {
  padding: 20px;
}
#extra-info .footer-block {
  padding: 15px;
}
#extra-info h1 {
  font-size: 3rem;
}
#extra-info .landing-page-block-text {
  padding: 30px;
  border: 1px solid #eaeaea;
}

#maincontainer h2.general_assessment_tool {
  color: blue;
}
#maincontainer h2.operational_facilitation_tool {
  color: green;
}

.app-header {
  width: 286px;
}
.welcome-title {
  font-size: 30px;
}
@media (min-width: 880px) {
  h1.ecl-page-header__title {
    display: flex;
  }
  .welcome-title {
    line-height: 68px;
    font-size: 40px;
    padding-left: 25px;
  }
}

.tool-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tool-item {
  box-sizing: border-box;
  margin: 10px 10px 0 0;
  width: calc(1/3*100% - (1 - 1/3)*10px);
}
.tool-items > div:nth-child(3n) {
  margin-right: 0;
}
.tool-items::after {
  content: '';
  flex: auto;
}
.ecl-search-form.shrinked {
  width: 100%;
}
#search-results {
  margin: 10px 0;

}
#search-results .entry-text {
  opacity: 0.7;
  font-style: italic;
  line-height: 170%;
}
.boxy-item {
  margin: 5px;
  padding: 20px;
  border: 1px solid gray;
  border-radius: 10px;
  font-size: 125%;
  text-align: center;
  &:hover {
    font-weight: bold;
  }
}
.boxy-item img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.boxy-item img:hover {
  filter: grayscale(0%);
}

.tagify.ecl-text-input {
  padding: 0;
  display: flex;
  min-height: 44px;
}
.tagify.ecl-text-input:active {
  padding: 0;
}

.grt-intro-content {
  display: flex;
  gap: 20px; /* Adds space between the blocks */
  flex-direction: row; /* Align items side by side horizontally */
}

/* Styling for the .intro-area block */
.grt-intro-content .intro-area {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  flex: 1;
  margin: 15px 0;
}

/* Styling for the .ref-box block */
.grt-intro-content .ref-box {
  background-color: #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  flex: 0.4; /* Takes up 40% of the available width */
}
.ref-link-area {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ref-content {
  display: flex;
  align-items: center;
  gap: 1rem; /* Optional: spacing between text and logo */
}

#search-results .ref-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdgs-logo-round {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}
.returned-search-results .top-log {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.returned-search-results .log-text {
  flex-grow: 1;
}
.returned-search-results .reset {
  padding-right: 24px;
  padding-bottom: 8px;
}
.returned-search-results .download-results {
  padding: 10px;
}

.ref-box.results {
  padding-right: 10px;
}
.ref-box.slim {
  padding: 10px;
  background-color: lightblue;
  min-width: 360px;
  margin: 15px 0;
}
.ref-box-title h5 {
  font-size: 1.1rem;
}
.ref-box.suggestions ul li.parent-li {
  list-style: none;
  padding: 10px 0;
}
.ref-box.suggestions ul li.parent-li .target-name {
  font-weight: bold;
}
.ref-box.suggestions ul li.parent-li .keywords-display {
  padding-left: 5px;
}
.ref-box.suggestions ul li.parent-li   ul {
  padding-left: 0;
}
.ref-box.suggestions ul li.parent-li ul li {
  list-style: none;
  font-weight: normal;
}
/* Initially hide all <li> elements beyond the first 5 */
.ref-box.suggestions .parent-li ul li:nth-child(n+6) {
  display: none;
}

/* Style the "Show more" link */
.ref-box.suggestions .show-more {
  cursor: pointer;
  color: darkblue;
  text-decoration: underline;
  font-weight: normal;
}
/*
  remove top margin from first row
  -n+3 - 3 columns per row
*/
.tool-items > div:nth-child(-n+3) {
  margin-top: 0;
}

.tool-item.item-disabled {
  pointer-events: none;
  opacity: 0.4;
}
.tool-item.item-important a {
  color: red;
}
.tool-item .title {
  border: 1px solid lightgrey;
  background-color: #f1f1f1;
  margin: 20px 0 20px 0;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: flex-end; /* Vertical center alignment */
  justify-content: center; /* Horizontal center alignment */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px 200px;
  background-position-y: 20px;
}
.info-page .tool-item .title {
  align-items: center;
  min-height: 120px;
}
.tool-item.biggie {
  width: 320px;
}
.tool-item.biggie a img {
  height: 340px;
}
.tool-item .description {
  width: 90%;
  margin-left: 7px;
}
.tool-item.biggie .description {
  padding-top: 15px;
}
.disabled-link {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}
.references-tracker .sdg-sentence {
  margin: 15px 0 15px 10px;
  max-width: 888px;
  word-wrap: break-word;
}
.references-tracker-file-header {
  margin: 20px 10px 20px 0px;
}
.sdg-number-of-sentences {
  font-size: 20px;
  padding: 10px 0;
}
.sdg-file-name {
  padding: 20px 0 5px 0;
}
.sdg-file-name span{
  font-size: 20px;
  font-weight: bold;
  padding: 10px 0;
}
.sdg-sentence span {
  font-weight: bold;
}
.sdg-sentence-keyword {
  font-style: italic;
  padding: 14px 0;
  color: red;
  margin-bottom: 20px;
}

.mapping-list {
  margin-left: 25px;
}
.mapping-list li {
  padding: 0px 0 0px 70px;
  background-image: url(../assets/images/document_icon_search.png);
  background-repeat: no-repeat;
  background-size: 46px;
  margin: 10px 0;
}
.mapping-list li a {
  font-size: 140%;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 0;
  width: 100%;
}
.navigation a {
  width: 33%;
}
.navigation a.center {
  text-align: center;
}
.navigation a.next {
  text-align: right;
}

.mapping-documents ul {
  padding-left: 14px;
}
.mapping-documents .files-language div {
  display: inline;
}

.bubblechart-label {
  pointer-events: none;
}

.chart {
  margin: auto;
}

.node:hover {
  stroke: #404040;
  stroke-width: 1.5px;
}

img.mapping {
  width: 50px;
  margin: 5px;
}

img.polprio {
  width: 100px;
  margin: 2px;
}

.sdg-detected {
  width: 100%;
  border: 1px solid grey;
  display: flex;
}
.sdg-detected .sdg-det-part1 {
  width: 10%;
}
.sdg-detected .sdg-det-part1 img {
  width: 100%;
}
.sdg-detected .sdg-det-part2 {
  width: 90%;
  position: relative;
}
.sdg-detected .sdg-det-part2 .sdg-vert-bar {
  position: absolute;
  background-color: black;
  opacity: 0.1;
  height: 100%;
  width: 0;
  transition: width 2s;
}
.sdg-detected .sdg-det-part2 p {
  position: absolute;
  /* vertical-align: baseline; */
  font-size: 24px;
  padding: 0 20px;
  bottom: 0px;
  margin-bottom: 5px;
}

.sdg-detected-btns label {
  font-size: 0.96rem;
}

/* List of Mappings */
.list-of-mappings {
  margin-bottom: 20px;
}
.list-of-mappings tbody tr td {
  padding: 0.2rem 0.1rem;
}
#maincontainer .list-of-mappings tbody tr td a, #maincontainer .list-of-mappings tbody tr td a:active, #maincontainer .list-of-mappings tbody tr td a:visited {
  text-decoration: underline;
}
.list-of-mappings .form-item-combine, .list-of-mappings .form-actions, .list-of-mappings .form-item-field-mapping-tags-target-id {
  display: inline;
  margin: 15px 0;
}
.list-of-mappings td.views-field-title a {
  font-size: 120%;
}
.list-of-mappings .views-field-field-mapping-files li::marker,
.list-of-mappings .views-field-field-mapping-files li span:last-child {
  color: #7B7474;
}
#edit-submit-list-of-mappings, #edit-reset{
  border: 1px solid;
  padding: 3px 27px 0;
  height: 51px;
}
.views-exposed-form input#edit-combine, #edit-field-mapping-tags-target-id {
  font-size: 1.1em;
  padding: 13px 5px;
  width: 30%;
  margin: 15px 15px 10px 0;
}

.report-charts-selects .input-group {
  display: inline-flex;
  width: auto;
}

input.autocomplete-deluxe-form.autocomplete-deluxe-multiple {
  font-size: 16px;
}

.mapping-tags {
  display: flex;
  justify-content: right;
  margin-top: 5px;
}
.mapping-tags a, .mapping-tags button {
  margin-left: 10px;
}

.info-block {
  display: flex;
}
.info-block .publish-name, .info-block .publish-date {
  margin-left: auto;
}
.validation-edit-area {
  max-width: 670px;
}
#main-sdg-view {
  display: inline-block;
  margin-top: 20px;
  width: 121px;
  margin-right: 8px;
}
#significant-sdgs-view {
  display: inline-block;
}

.validation-instructions {
  padding-top: 15px;
  padding-bottom: 15px;
}
.validation-instructions img {
  width: 60px;
  height: 60px;
}
.validation-card {
  cursor: move;
}
/*
#other-sdgs-view .validation-droppable {
  border: 1px dotted gray;
}
*/
.validation-card .card-title {
  font-weight: bold;
  text-align: center;
}

.validation-card .card-body {
  display: none;
  /* padding: 0.5rem 0 0; */
}

.validation-card .card-body-text {
  padding: 0 0.5rem;
}

.validation-card p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.validation-card h5 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 90%;
}

.validation-card.ui-draggable-dragging {
  -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
}

.validation-card.over {
  opacity: 0.4;
}

.validation-droppable {
  min-height: 120px;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-right: 10px;
  margin-bottom: 15px;
}

.validation-droppable.ui-droppable-hover {
  background: #aaa;
}

.validation-headers {
}

.validation-headers-report {
  font-size: 15px;
  text-decoration: underline;
}

.validation-icons {
  width: 55px;
}
#significant-sdgs-view .validation-droppable {
  width: 121px;
}
#other-sdgs-view .validation-card {
  max-width: 121px;
}
.extract-validation {
  width: 24%;
  text-align: right;
  font-size: 24px;
}

#main-sdg-perc div, #significant-sdgs-view div {
  font-size: 13px;
}

#api-doc h5 {
  font-size: 1.1rem;
  line-height: 1.1;
}

#api-doc h5.card-headers {
  color: #004494;
}

#api-doc p {
  font-size: 0.9rem;
}

#api-doc p.example {
  color: #000;
  margin-bottom: 7px;
}

#api-doc .http_method {
  background-color: #004494;
  color: #fff;
  display: inline-block;
  width: 50px;
  font-size: 0.7rem;
  text-align: center;
  padding: 7px 0 4px;
  border-radius: 2px;
}

#api-doc .path {
  padding-left: 10px;
}

#api-doc .operation {
  float: right;
  margin: 2px 10px 0 0;
  color: #004494;
}

#api-doc pre {
  font-size: 0.85rem;
  line-height: 1.6em;
  height: 200px;
  resize: vertical;
  padding: 10px;
  background-color: #fcf6db;
  border: 1px solid #e5e0c6;
  margin-bottom: 1.5rem;
}

#api-doc #api-response pre {
  max-height: 400px;
  height: auto;
}

#api-doc table {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

#api-doc table td {
  vertical-align: top;
}

#api-doc .response-hider {
  padding: 4px 0 0 10px;
  font-size: 0.9rem;
}

.sdgmapper-articles {
  margin: 40px 0;
}
.sdgmapper-articles .views-element-container {
  border: 1px solid #cacaca;
  padding: 15px;
  font-size: 90%;
}
.sdgmapper-articles .views-row {
  padding-bottom: 20px;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: 100px;
}
.grid-wrapper a {
  border: 1px gray dashed;
  padding: 10px;
}
.grid-wrapper a:hover {
  background-color: #fafafa;
}

#chords-card {
  display: none;
}

.top-back {
  float: right;
}

#indicators-table {
  width: 100%;
  table-layout: auto; /* Allows dynamic resizing */
  border-collapse: collapse;
  font-size: 90%;
}
#indicators-table .indicator-cell th,
#indicators-table .indicator-cell td {
  white-space: nowrap; /* Prevents text wrapping */
  text-align: left;
}
/* Fixed width for first column */
#indicators-table .td-col20-0 {
  width: 25% !important;
}
/* Hide columns when toggled */
#indicators-table .hidden {
  display: none;
}
#indicators-table .td-col30-0 {
  width: 16%;
}
#indicators-table .sdgtargetcol {
  width: 12% !important;
}
#indicators-table .goal-target-icon {
  width: 140px;
}
#indicators-table .target-description {
  font-size: 85%;
  display: none;
}
#indicators-table .info-icon {
  opacity: 0.4;
  cursor: context-menu;
  flex: auto;
  padding-left: 10px;
}
#indicators-table .col-header {
  cursor: context-menu;
}
#indicators-table th label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}
#indicators-table th.target-col label {
  font-size: 70%;
}
/* Style the checkbox for better appearance */
#indicators-table th input[type="checkbox"] {
  margin-right: 5px;
  transform: scale(1.2); /* Slightly larger checkbox */
}
/* Position the checkbox to the right */
#indicators-table th {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Style the column toggler container */
.indicators-column-toggler, .associated-indicators-toggler {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap; /* Allows wrapping of items */
}
.associated-indicators-toggler {
  margin-bottom: 10px;
}
/* Style each checkbox label */
.indicators-column-toggler label, .associated-indicators-toggler label {
  display: block; /* Makes each checkbox label take up a full line */
  margin-right: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer; /* Makes it clickable */
  color: #333;
  transition: color 0.3s ease;
}
/* Style checkbox to align with text */
.indicators-column-toggler input[type="checkbox"], .associated-indicators-toggler input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}
/* Change label color on hover */
.indicators-column-toggler label:hover {
  color: #0056b3;
}
/* Make labels bold for better visibility */
.indicators-column-toggler label {
  font-weight: bold;
}

.indicator-cell ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
}
.indicator-cell .indicator-id {
  font-weight: bold; /* Make indicator-id strong */
}
.indicator-cell .indicator-label {
  font-weight: bold;
}
.indicator-cell .associated-label, .indicator-cell .associated-indicator {
  font-style: italic;
}
.global-gateway-disclaimer {
  margin: auto;
  max-width: 968px;
  background-color: #a8d3e4;
  font-size: 130%;
  padding: 15px;
}
/* Print-specific styles - used for printing Indicators and DAC table */
@media print {
  #maincontainer {
    width: 100%;
    max-width: 100%;
  }
  .ecl-site-header__banner {
    display: none;
  }
  .knowsdgs_container {
    margin: 0;
  }
  div#dac-chart {
    width: 100% !important;         /* full page width */
    max-width: 100% !important;
    overflow: visible !important;   /* no scrollbars */
    margin: 0 !important;           /* remove extra spacing */
    padding: 0 !important;
  }
  img.polprio {
    width: 50px;
    margin: 2px;
  }
  /* Expand all hidden indicator lists */
  .more-main-indicators {
    display: block !important;
  }
  /* If your hidden table rows use class="hidden", show them */
  #indicators-table tr.tr-bordered.hidden {
    display: flex !important;
  }
  /* Optional: force ULs to not cut weirdly across pages */
  .main-indicators {
    page-break-inside: avoid !important;
  }
  /* Hide the "Show more" link during print */
  .show-more-link, #toggle-hidden-rows {
    display: none !important;
  }

  .ecl-spinner {
    display: none;
  }

  table#indicators-table {
    page-break-inside: avoid; /* prevent table rows from splitting */
    width: 100%;
    table-layout: fixed;      /* ensures columns shrink evenly */
  }

  th, td {
    word-wrap: break-word;    /* wrap long text */
  }

  @page {
    size: A4 portrait;       /* use landscape for wide tables */
    margin: 2mm;
  }

  body {
    margin: 0;
  }
}
