/* =========================================================
   RESTORED BASELINE VERSION OF EuriscoTheme.css
   Point restored: responsive layout where filters + overview stay
   side-by-side on 15-inch screens.
   Uses the matching responsive-apex-overrides.css baseline file.
   ========================================================= */

.nav-links a:hover{ color:white; text-decoration: underline;
}

.logo img {
  height: 65px;          
  max-height: 100px;     
  object-fit: contain;   
}

.logo img:first-child {
  margin-right: -10px;   
}
.search-hint {
  margin-top: 8px;
  font-size: 1.5rem !important;
  color: #ffffff;     
  text-align: center;
}
.search-hint code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffeb3b;      /* yellow highlight */
  font-family: monospace;
}

/* ------------------------ */
/* Global Styles */
/* ------------------------ */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.row div {
    border-left-width: 0px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
}

/* Remove unnecessary margins from APEX regions */
.t-Region {
    margin: 0 !important;
}

.t-Region-header {
    display:none;
}

.t-Region-body {
	padding: 0 !important;
}

.t-Body-contentInner > div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reduce margin between sections */
.t-Body-contentInner > div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide default Oracle APEX Navigation */
.t-Header {
    display: none !important;
}
.t-Body-content {
    margin-top: 0px !important;
}
.t-Body-contentInner {
    padding: 0 !important;
}

/* Hide all section headings except chart title and remove empty space */
h1, h2, h3 {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}


/* Remove extra spacing in sections */
.top-header, .banner, .stats-container {
    margin: 0 !important;
    height: auto !important;
}

/* Adjust search bar spacing */
.banner {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Remove excessive spacing around statistics section */
.stats-container {
    margin-top: -10px !important;
    padding-top: 0 !important;
}

/* Keep only the chart heading */
.chart-container h3 {
    display: block !important;
    margin-bottom: 15px !important;
	font-size: 15px;
}

/* ------------------------ */
/* Top Header (Navigation) */
/* ------------------------ */
.top-header {
    background: linear-gradient(90deg, #EAF3EC, #D0E500, #A9C9FF);
    padding: 0.5rem 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #273c75;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
	font-size: 1.75rem;

}

.nav-links a i {
    font-size: 1.2rem;
}

/* ------------------------ */
/* Search Section (Banner) */
/* ------------------------ */
.banner {
	background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    color: white;		
    width: 100%; /* Ensures it spans the full width */
    height: 500px; /* Increased height */
    
    align-items: center; /* Centers the text vertically */
    justify-content: center; /* Centers content horizontally */
}

.banner h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

.banner p {
    font-size: 15px;
    margin: auto;
}

 .search-bar {
  max-width: 750px;
  margin: 2.5rem auto;
  display: flex;
  border: 2px solid #00b4d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 1.50rem 1rem;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
  font-size: 1.5rem;
  color: #2f3640;
}

.search-bar input::placeholder {
  color: #7f8fa6;
}

.search-bar button {
  padding: 0.75rem 1.5rem;
  background-color: #44bd32;
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #4cd137;
}

.search-btn {
  background-color: #44bd32;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  border-radius: 0 50px 50px 0;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #009e6e;
}

.search-btn i {
  margin-right: 6px;
}

/* ------------------------ */
/* Statistics Section */
/* ------------------------ */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 15px 0 !important;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 320px;
    min-height: 120px;
}

.stat-card h4{
	color: #273c75;
    font-weight: 600;
	font-size: 1.75rem;
}
.stat-card p {
    font-size: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 10px;
    display: block;
}

/* Different Icon Colors */
.stat-card:nth-child(2) .stat-icon {
    color: #f39c12; /* Orange */
}

.stat-card:nth-child(3) .stat-icon {
    color: #2ecc71; /* Green */
}

/* ------------------------ */
/* Crops section */
/* ------------------------ */

.carousel-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  color: #aaa;
}

.crop-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 0 30px;
  overflow: visible;
}

.crop-carousel {
  width: 1020px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 0; /* No side padding */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.crop-carousel::-webkit-scrollbar {
  display: none;
}

.crop-card {
  flex: 0 0 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  text-align: center;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.crop-card:first-child {
  margin-left: 5px; /* small nudge to prevent visual clipping */
}

.crop-card:hover {
  transform: scale(1.03);
}

.crop-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.crop-card p {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: green;

}

.carousel-btn.left {
  left: 25px;
}

.carousel-btn.right {
  right: 25px;
}

/* ------------------------ */
/* Parent Region: Align Chart & News Updates in One Row */
/* ------------------------ */

.chart-news-wrapper{
	padding-left: 14%;
	padding-right: 8%;		
    padding-bottom: 1%;

}
/* Chart Section - Ensure Proper Width */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0; /* Light border */
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#barchartacc{
	border: 1px solid #e0e0e0;
}
/* Improve layout of Latest Updates section */

/* News Updates Section */
.news-containerr {
    width: 80%;
    height: 575px;
    background: white;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    padding: 20px !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);    	
	border: 1px solid #e0e0e0; /* Light border */
}
/* Ensure News Items Stack Well */
.news-contentt {
    display: flex;
    flex-direction: column;
    gap: 5px;	
    max-height: 610px; /* Adjust based on container height */
    overflow-y: scroll; /* Enables scrolling */    
    /* Hide scrollbar for Chrome, Safari and Edge */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

/* Fix Small News Updates */
.news-updates {
    padding: 10px !important;
    border-radius: 8px;
    margin-bottom: 5px !important;
    font-size: 16px;
    font-weight: 600;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    transition: background-color 0.2s ease;
}

.news-updates:hover {
  background-color: #dfeefc;
}

/* News Icons */
.news-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #2980b9;
}

.news-updates:nth-child(odd) {
      background-color: #eaf0f1;
      border-left: 5px solid #40739e;
    }

.news-updates:nth-child(even) {
  background-color: #f9f5e5;
  border-left: 5px solid #e1b12c;
}


.news-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 70%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.news-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.news-modal-close:hover {
  color: #e74c3c;
}

#newsModalTitle {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.news-modal-body {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ------------------------ */
/* Footer */
/* ------------------------ */
footer {
    background: #34495e;
    color: white;
    padding: 20px !important;
	text-align: center;
	font-size: 1.75rem;
}


.footer-link {
  color: #f5f6fa;
  text-decoration: none;
  margin: 0 50px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* ¿ Adds space between icon and text */
  font-size: 1.75rem;
}

.footer-link i {
  color: #1abc9c;
  font-size: 1.75rem;
    margin-right: 6px;
}

.footer-link:hover {
  text-decoration: underline;
  color: #1abc9c;
}



@media (min-width: 1800px) { 
	.chart-news-wrapper{
		
		padding-left: 23%;
		padding-right: 18%;
	}	
	.top-header {
		background: linear-gradient(90deg, #EAF3EC, #D0E500, #A9C9FF);
		padding: 0.5rem 20%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}	
	.banner p {
		font-size: 16px;
		margin: auto;
	}
}


@media (min-width: 2500px) { 
	.chart-news-wrapper{
		
		padding-left: 29%;
		padding-right: 25%;
	}	
	.top-header {
		background: linear-gradient(90deg, #EAF3EC, #D0E500, #A9C9FF);
		padding: 0.5rem 25%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}	
	.banner h1 {
		font-size: 32px;
		font-weight: bold;
		margin-bottom: 15px;
	}

	.banner p {
		font-size: 20px;
		margin: auto;
	}	
}

/* --------ex-situ page CSS---------------- */

.top-header-ex {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(90deg, #EAF3EC, #D0E500, #A9C9FF);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Remove extra spacing in sections */
.top-header-ex {
    margin: 0 !important;
    height: auto !important;
}

.exsitu-page .search-filters .t-Region-header, 
.exsitu-page .diagrams-Container .t-Region-header {
    display: flex !important;
	background-color: #f1f1f1;
}

/* BUT Show H1, H2, H3 ONLY on Exsitu Page */
.exsitu-page h1,
.exsitu-page h2,
.exsitu-page h3 {
    display: block !important;
    margin: initial !important;
    padding: initial !important;
    height: auto !important;
    visibility: visible !important;
}

.t-Region-title {
    cursor: pointer;
}


.suggested-filters-table {
    width: 100%;
    border-collapse: collapse;
}

.suggested-filters-table th {
    background-color: #f4f4f4;
    padding: 8px;
    text-align: left;
}

.suggested-filters-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.t-Report-cell{    font-size: small;
}

.suggested-filters-table tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.t-Report-report{
	width: 100%;
}
.latitude-container {
    display: flex;
    gap: 10px; /* Space between the fields */
}

.latitude-container .t-Form-inputContainer {
    flex: 1; /* Make both fields take equal space */
}

/* Ensure the heading appears in the first row */
.latitude-heading{    
    margin-bottom: -5px; /* Reduce space below heading */
}

/* Place Min and Max value inputs in the second row */
.latitude-container {
    display: flex;
    gap: 10px; /* Adjust spacing between input fields */
    align-items: center;
}

/* Ensure labels are aligned properly above inputs */
.t-Form-inputContainer {
    display: flex;
	flex-direction: column;
    flex: 1; /* Ensures equal spacing */
}

/* Increase the width of input fields */
.t-Form-inputContainer input {
    width: 100%; /* Adjust width */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
   margin-left: 5px;
    margin-right: 5px;
}


historical-accession-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.historical-checkbox {
    margin: 8px;
}

.filter-buttons-container {
    position: sticky;
    display: flex;
    justify-content: space-between; /* Aligns buttons */
    align-items: center;
    padding: 15px 20px 15px 20px;    
	background: #f1f1f1; /* Light background */
}

#apply-filters-btn {
    background-color: #6d7f32; /* Olive Green */
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#reset-filters-btn {
    background: none;
    color: #3d5a80; /* Blue */
    font-weight: bold;
    font-size: 14px;
    text-decoration: underline;
    border: none;
    cursor: pointer;
}


.search-filters {
    outline: 1px mix #ccc; /* Temporary fix to test visibility */
}

#selectedFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.filter-tag {
    background: #e5e5e5;
    border-radius: 20px;
    padding: 8px 32px 8px 12px; /* ¿¿ Extra padding on the right for the close button */
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative; /* ¿¿ Needed for absolute positioning inside */
    gap: 10px;
}

.filter-tag span {
    margin-right: 8px;
}

.filter-tag button {
    background: #d9534f;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 14px;

    position: absolute;
    right: 8px; /* ¿¿ Align to the right */
    top: 50%;
    transform: translateY(-50%); /* ¿¿ Center vertically */
}

/* Hover effect */
.filter-tag button:hover {
    background: #c9302c;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;  /* Blue spinner color */
    border-radius: 50%;
    width: 40px;  /* Ensures spinner size is visible */
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 5px;  /* Space between spinner and text */
    display: inline-block; /* Ensure it's rendered */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.autocomplete-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  margin-bottom: 8px;
  border: none;
  border-bottom: 2px solid #ccc;
}

.autocomplete-input:focus {
  outline: none;
  border-bottom: 2px solid #7BB13C;
}

.filter-section h3 {
  font-weight: bold;
  margin: 8px 0;
}

.suggested-filters-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-item {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-item:hover {
  background: #e4f0ff;
}


.filter-count {
  color: #555;
}
.filter-item.selected {
  background: #f3f0ed;
  display: flex;
  font-weight: bold;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.filter-item.selected .icon {
  margin-right: 6px;
  color: #888;
}

.filter-item.selected .remove-icon {
  cursor: pointer;
  padding: 2px 5px;
  color: #444;
  border-radius: 50%;
  background: #ccc;
  font-weight: bold;
  font-size: 14px;
  margin-left: 8px;
}

.view-toggle-buttons {
	display: flex;
	gap: 10px;
	padding: 1rem;
	border-radius: 8px;
	margin: 10px 0px 10px;
}

.accession-count-display {
	font-size: 18px;
    margin: 0px 0 0px 10px;
    color: #000;
    border-bottom: 1px solid #ccc;
}
.toggle-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background-color: #e0e0e0;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.toggle-btn:hover {
  background-color: #d6d6d6;
}

.toggle-btn.active {
  background-color: #28a745; /* EURISCO green */
  color: white;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.accessions-table {
  width: 100%;
  border-collapse: collapse;
}

.accessions-table th,
.accessions-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
}
.accessions-table th {
  background: #f5f5f5;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}



.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;  
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 6px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}

.modal-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.modal-close:hover {
  color: #e74c3c;
}

.modal-body h3 {
  margin-top: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  font-size: 16px;
}

.modal-body p {
  margin: 4px 0;
}

.modal-body .label {
  display: inline-block;
  width: 220px;
}


.modal-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8); /* semi-transparent white */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-loading-content {
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.filter-group {
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 0;
}

.filter-field {
  margin-bottom: 10px;
}

.filter-field label {
  display: block;
  margin-bottom: 6px;
  color: #444;
}

.filter-field input {
  width: 100%;
  padding: 6px 10px;
  border: none;
  font-size: 14px;
  border-bottom: 2px solid #ccc;
  font-size: medium;
}

.filter-field input:focus {
  outline: none;
  border-bottom: 2px solid #7BB13C;
}

.filter-subtitle {
  font-size: 16px;
  margin: 16px 0 8px;
}

.filter-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0px; /* Align with Suggested filters title */
}

.country-filter-container,
.range-filter {
  margin-left: 0;
  padding: 10px;
}

.range-filter label {
  margin-bottom: 6px;
}

.range-inputs {
  display: flex;
  gap: 8px;
}

.range-inputs input {
  flex: 1;
  padding: 6px 8px;
  border: 2px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  width: 100%;
}


.filter-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 12px;
    font-family: Arial, sans-serif;
}

.filter-title {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
}

.country-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.country-filter-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s;
}

.country-filter-item:hover {
    background-color: #eaeaea;
}

.country-count {
    color: #555;
}
/* Outer container: remove scroll if not needed */
#biologicalStatus-filter .checkbox-filter-list {
  max-height: none !important;  /* or increase max-height if needed */
  overflow-y: visible !important;
  padding: 4px;
}

/* Each row */
.checkbox-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Child terms */
.checkbox-row.nested {
  padding-left: 20px;
}

/* Input and label layout */
.checkbox-row input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.1);
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  cursor: pointer;
  font-weight: inherit;
  margin: 0;
}

/* Text aligned next to checkbox */
.checkbox-row .label-text {
  flex-grow: 1;
}

/* Count in parentheses */
.checkbox-row .count {
  white-space: nowrap;
  font-size: 13px;
}

#status-filter .status-label {
  font-size: 16px; /* Increase heading size */
  margin-bottom: 4px;
}

#status-filter .checkbox-row {
  font-size: 15px; /* Increase checkbox label + count size */
  margin-bottom: 6px;
}

#status-filter .checkbox-row .label-text {
  margin-left: 6px;
}

#status-filter .count {
  margin-left: 8px;
  font-size: 14px;
}

.checkbox-filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox-row .count {
  margin-left: auto;
  font-size: 13px;
}

.checkbox-row input[type="checkbox"] {
  margin-right: 5px;
}


.climate-filter-group {
  margin-bottom: 14px;
  padding: 4px;
}

.climate-label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
  margin-bottom: 6px;
  white-space: normal;
  line-height: 1.2em;
}

.climate-input-container {
  display: flex;
  gap: 10px;
}

.climate-input {
    flex: 1;
    padding: 6px 8px;
    border: 2px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    width: 100%;
}



#Stats-News-Container .a-CardView-icon {
  margin-bottom: -0.25rem;
}

#Stats-News-Container .a-CardView-mainContent {
  font-size: 2rem; /* or try 1.2rem for more impact */
  padding: 10px;
  margin-top: 10%;
}

#Stats-Container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#Stats-News-Container .a-CardView-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 1.2rem;
}

#Stats-News-Container .a-CardView {
  border: none;
  border-radius: 10px;
  padding: 1.5rem;
    background: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#Stats-News-Container .a-CardView-icon {
  font-size: 3rem;
  color: #40739e;
}

#Stats-News-Container .a-CardView-icon {
  background:transparent;
  padding: 1rem;
  border-radius: 50%;
}

#Stats-News-Container .a-CardView-icon {
  display: inline-block;
  vertical-align: middle;
}

 #Stats-News-Container h3.a-CardView-title {
  display: block !important;
  font-size: 1.5rem;
  font-weight: 500;
  color: #273c75;
  margin-top: 0.5rem;
  visibility: inherit !important;
}

#Stats-News-Container .a-CardView-body {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
}

// about section css
.about-modal-wrapper {
  position: relative;
  display: inline-block;
}

/* The "About" link styling */
.about-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
  cursor: pointer;
}

/* Modal-style submenu */
.about-modal {
  display: none;
  background: white;
  position: fixed;       
  border: 1px solid   #ccc;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  min-width: 250px;
  z-index: 9999;
  color: red;
}

.about-modal a {
    color: #273c75 !important;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem ! important;
}

/* Show modal on hover */
.about-modal-wrapper:hover .about-modal,
.about-modal:hover {
  display: block;
}

/* Modal link styling */
.about-modal a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
}

.about-modal a:last-child {
  border-bottom: none;
}

.about-modal a:hover {
  background-color: #f0f0f0;
}

.about-modal {
  right: 15%;
}
.exsitu-page .about-modal {
  right: 10px;
}

.eur-callout {
  background: #f7fbff;
  border: 1px solid #dfebf7;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 14px;
}
.eur-callout__title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}

.origins-tl {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  position: relative;  
}
.origins-tl::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 4px;
  bottom: 6px;
  width: 2px;
  background: #e4eef0;
}
.origins-tl > li {
  position: relative;
  margin: 12px 0;
  padding-left: 58px;
  font-size: 1.5rem;
}
.tl-dot {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.tl-content {
  color: #0f172a;
  line-height: 1.6;
}
.tl-year {
  display: inline-block;
  font-weight: 800;
  color: #0b7d96;
  margin-right: 6px;
}

.align-15p { padding-left: 15%; padding-right: 15%; }

.resp-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
/* Single-column on small screens; two columns on wide screens */
@media (min-width: 980px){
  .resp-list{ grid-template-columns: 1fr 1fr; }
}
.resp-list li {
  counter-increment: step;
  position: relative;
  background: #f8fbfb;
  border: 1px solid #e4eef0;
  border-radius: 12px;
  padding: 14px 14px 14px 54px;
  line-height: 1.6;
  color: #0f172a;
  font-size: 1.5rem;
}
.resp-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg,#0b7d96,#10b981);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.resp-list li:focus-within {
  outline: 3px solid rgba(11,125,150,.25);
  outline-offset: 2px;
}

.how-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}
.how-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: #f8fbfb;
  border: 1px solid #e4eef0;
  border-radius: 12px;
  padding: 14px;
}
.how-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg,#0b7d96,#10b981);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.how-heading {
  margin: 2px 0 6px;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}
.how-heading i { color: #0b7d96; }
.how-text {
  margin: 0;
  color: #0f172a;
  text-align: justify;
  line-height: 1.6;
}

.about-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 0;
  line-height: 1.6;
  font-size: 1.75rem;
  border: 2px solid #2c3e50;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.about-info p { color: #0f172a; }

.about-title {
  margin: 4px 0 10px;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  position: relative;
  padding-left: 10px;
}
.about-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg,#0b7d96,#10b981);
}

.about-body p {
  margin: 12px 0;
  text-align: justify;
}
.about-info a {
  color: #0b7d96;
  text-underline-offset: 3px;
}
.about-info a:hover {
  color: #0a5e7a;
  text-decoration: underline;
}

.about-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 6px 0 10px;
  list-style: none;
}
.about-stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f8f7;
  border: 1px solid #d9eeea;
  color: #0b7d96;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}
.about-stats .stat {
  font-weight: 800;
  color: #10b981;
}
.about-info.about-card {
  margin-bottom: 18px; /* adjust spacing */
}

/* Description text */
.nfp-description p {
  text-align: justify;
  font-size: inherit;
  margin-bottom: 1rem;
}

/* Section title */
.nfp-responsibilities h5 {
  margin-top: 1.8rem;
  font-size: inherit;
  font-weight: 600;
  color: #1c6137;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sub icon */
.nfp-subicon {
  font-size: 1.4rem;
}

/* List styling */
.nfp-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.nfp-list li {
  background: #f4f9f4;
  margin-bottom: 0.6rem;
  padding: 12px 14px;
  border-left: 4px solid #3a814a;
  border-radius: 6px;
  font-size: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

#Stats-Container .t-Region-header
{display: block !important;

visibility: visible !important;
            height: auto !important;
            font-weight: bold;}

/* Base card styling */
.a-CardView-item {
  border: 2px solid #E0E111;          /* light border */
  border-radius: 8px;                 /* rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */                     /* inner spacing */
  background-color: #fff;             /* white background */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Card subtitle */
.a-CardView-item .a-CardView-subTitle {
    font-size: 1.75rem;
  font-weight: 800;  color: #666;
}

.a-CardView-item .a-CardView-body .a-CardView-subContent  {
  font-size: 2rem;
  line-height: 1.4;
  color: #444;
  margin-top: 25%;
}

.a-CardView-items.a-CardView-items--grid {
  padding-left: 33% !important; 
}

.resp-list li {
font-size: inherit;

}
.tl-content {
    font-size: 1.75rem;
}

.docsWrap {
  padding-left: 27%;
  padding-right: 22%;
}

#DOC_DESCRIPTION {
    font-size: 1.5rem;
}

/* tables full width */
#docsReport .t-Report { 
  width: 100%; 
}

/* enlarge type */
#docsReport { font-size: 1.5rem; }
#docsReport .doc-card__title { font-size: 1.5rem; }

/* table cells */
#docsReport .t-Report-report td {
  padding: .35rem 0;
  vertical-align: middle;
  border: 0;
}

/* card styling */
#docsReport a.doc-card {
  display: grid;
  grid-template-columns: 32px 1fr 22px;
  gap: .75rem;
  align-items: center;
  padding: .7rem .9rem;
  margin: 0 0 .6rem 0;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
  transition: box-shadow .15s ease, transform .05s ease;
}
#docsReport a.doc-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* icons + meta */
#docsReport .doc-card__icon { font-size: 1.5rem; color: #2563eb; }
#docsReport .doc-card__cta  { font-size: 1.5rem; color: black; }
#docsReport .doc-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

/* badges */
#docsReport .badge {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: .32rem .5rem;
  border-radius: .35rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 1.5rem;
}
#docsReport .badge--size { background: #eef2ff; border-color: #e0e7ff; color: #4338ca; }
#docsReport .badge--date { background: #ecfeff; border-color: #cffafe; color: #155e75; }

/* layout */
.obtain { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.obtain__header { margin-bottom: 1rem; }
.obtain__lede { color: #4b5563; margin-top: .25rem; }
.obtain__grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 1.25rem; }
@media (max-width: 1000px){ .obtain__grid { grid-template-columns: 1fr; } }

/* steps */
.step { display: flex; gap: .9rem; padding: .9rem 1rem; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fff; margin-bottom: .75rem; }
.step__icon { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; }
.step--ok   .step__icon { background: #10b981; }
.step--info .step__icon { background: #3b82f6; }
.step--link .step__icon { background: #6366f1; }
.step--order.step .step__icon { background: #f59e0b; }
.step--note .step__icon { background: green; }
.step h3 { margin: 0 0 .25rem 0; font-size: 1rem; }
.checklist { list-style: none; padding-left: 0; margin: .25rem 0 0; }
.checklist li { margin: .5rem 0; font-size: 1.5rem;}
.checklist .fa { color: #16a34a; margin-right: .35rem; }

/* alert spacing */
.obtain__alert { margin-top: .5rem; }

/* example card */
.card { border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; background: #fff; }
.card__header { background: #eaf1e0; padding: .6rem .9rem; font-weight: 600; }
.card__header h4 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.card__body { padding: .75rem .9rem; }
.card__note { padding: .6rem .9rem; border-top: 1px dashed #e5e7eb; background: #fafafa; color: #374151; }
.pill { display: inline-flex; gap: .5rem; align-items: center; padding: .15rem .5rem; border-radius: 999px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.pill__action { margin-left: .25rem; font-size: 1.5rem; }

.kv { display: grid; grid-template-columns: minmax(180px, 40%) 1fr; gap: .45rem .75rem; }
.kv dt { font-weight: 600; color: #374151; }
.kv dd { margin: 0; color: #111827; }

.button-row { margin-top: .4rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.obtain__footnote { color: #4b5563; margin-top: .75rem; }


//terms page css
.terms-code {
  white-space: pre-wrap;
  padding: .5rem .75rem;
  border: 1px dashed #d1d5db;
  border-radius: .35rem;
  background: #f9fafb;
  font-family: monospace;
  font-size: inherit;
  margin: .5rem 0;
}

.terms-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  margin: 0 0 1rem 0;
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.terms-card .icon {
  font-size: 1.5rem;
  color: inherit;
}

.terms-card.positive   { border-left: 6px solid #2ecc71; background: #f6fdf9; }
.terms-card.warning    { border-left: 6px solid #e74c3c; background: #fff5f5; }
.terms-card.info       { border-left: 6px solid #3498db; background: #f4faff; }
.terms-card.neutral    { border-left: 6px solid #95a5a6; background: #fcfcfc; }

.terms-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  margin: 0 0 1rem 0;
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.terms-card .icon {
  font-size: 1.5rem;
  color: inherit;
}

.terms-card.positive   { border-left: 6px solid #2ecc71; background: #f6fdf9; }
.terms-card.warning    { border-left: 6px solid #e74c3c; background: #fff5f5; }
.terms-card.info       { border-left: 6px solid #3498db; background: #f4faff; }
.terms-card.neutral    { border-left: 6px solid #95a5a6; background: #fcfcfc; }

.terms-card strong { color: #2c3e50; }
.terms-card ul { margin: 0; padding-left: 1.25rem; }
.terms-card li { margin-bottom: .5rem; }

.terms-card.warning li {

font-size: inherit !important;

}

.top-header-ex {
padding: 0.5rem 1% !important;
}

.terms-section {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
}

.terms-section-header {
  padding: .5rem .75rem;
  border-radius: .35rem;
  margin: -1rem -1rem 1rem -1rem;
}

.terms-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.terms-definitions dt {
  font-weight: 600;
  margin-top: .75rem;
}
.terms-definitions dd {
  margin: .25rem 0 .5rem 1rem;
}

#all_selected_accessions {
    padding: 8px 16px;
    margin: 10px 5px;
    font-size: 14px;
    background-color: #28a745; 
    color: white; 
    font-weight: bold; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

#all_selected_accessions_in_situ {
    padding: 8px 16px;
    margin: 10px 5px;
    font-size: 14px;
    background-color: #28a745; 
    color: white; 
    font-weight: bold; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.data-table{
    border-collapse: collapse;      
}

/* Header */
.about-info .data-table thead th {
  color:black;
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
 border: 1px solid #ccc;
}

/* Body cells */
.about-info .data-table tbody td {
  background: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
 border: 1px solid #ccc;
  /* prevents long strings/urls from blowing out width */
  overflow-wrap: anywhere;
  word-break: break-word;
   
}

}
.about-info .data-table tbody tr:hover td {
  background: #eef2f7;
}


/* Links inside organisation column */
.about-info .data-table a {
  color: #2563eb;
  text-decoration: underline;
}

.doc-card__contact {
    font-size: 1.1em;
}
.doc-card__organisation {
    font-size: 1.2em;
}

.doc-card {
        display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.doc-card__title {
    font-weight: bold;
    font-size: 1.5em;
    display: block;
    margin-bottom: 4px;
}

.doc-card__meta {
    font-size: 1.2em;
    color:black;
    margin-bottom: 6px;
        font-weight: bold;
}

.reportWrap{
    padding-left: 27%;
    padding-right: 22%;
}

  address {
    font-style: normal;
    line-height: 1.8;
    background: #f1f1f1;
    padding: 15px;
    border-left: 4px solid #34495e;
    margin-bottom: 20px;
    border-radius: 5px;
}

  /* Card container */
.descriptor-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all .25s ease-in-out;
}

/* Content section */
.descriptor-content {
    flex: 1;
}

/* Type label */
.descriptor-type {
    font-size: inherit;
    color:black;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Title */
.descriptor-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* Description */
.descriptor-description {
    font-size: 14px;
    color:black;
    line-height: 1.5;
}

.descriptor-icon {
    margin-right: 4px;
    color: #2a7ae2;
}

.dictWrap{
    padding-left: 27%;
    padding-right: 20%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

.faq-page {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
}

.faq-header {
  margin-bottom: 2rem;
}

.faq-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.faq-header p {
  margin: 0;
  color: var(--text-muted);
}

.faq-controls {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.faq-controls button {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1em;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.faq-controls button i {
  color: var(--primary);
}

.faq-controls button:hover {
  background: var(--primary-light);
}

/* FAQ list */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Question button */

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 0.75rem;
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-title {
  font-weight: 600;
  font-size: 1em;
}

.faq-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.faq-icons .fa-circle-info,
.faq-icons .fa-seedling,
.faq-icons .fa-bullseye,
.faq-icons .fa-database,
.faq-icons .fa-list-check {
  color: var(--primary);
}

.faq-chevron {
  transition: transform 0.18s ease;
}

.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* Answer */

.faq-answer {
  padding: 0 1.25rem 0.9rem;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease-out;
}

.faq-answer p {
      margin: 0.75rem 0 0;
  color: black;
}


/* Styled Ordered List */
.ni-list {
    counter-reset: ni-counter;
    margin-bottom: 22px;
    padding-left: 0;
}

.ni-list li {
    list-style: none;
    margin: 8px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

/* Numbering style */
.ni-list li::before {
    counter-increment: ni-counter;
    content: counter(ni-counter);
    position: absolute;
    left: 0;
    top: 1px;
    background: #2a77e3;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icons inside list items */
.ni-list li i {
    margin-right: 8px;
    color: #2a77e3;
}

.faq-main-icon {
    font-size: 20px;
    color: #0d9488;
    margin-right: 5px;
}

:root {
  --primary: #2b7a4b;
  --primary-light: #e6f4ec;
  --border: #d6e2d9;
  --text-main: #243238;
  --text-muted: #60747c;
  --bg-page: #f5f7f9;
  --card-bg: #ffffff;
}


/* === Removed old conflicting scroll/layout block. Active responsive override is at the end of this file. === */


/* Stable version */
#accessionMapRegion {
  display: none;
}

.quick-facts {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.quick-facts h4 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.key-facts-Container {    
    background: #fff;   border: 1px solid #ddd; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
  position: relative;
  background: #fff;
}


/*  Gallery Messages */
.gallery-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
    gap: 12px;
}
.gallery-msg p { margin: 0; font-size: 14px; }

/*  Gallery Badge on Tab  */
#gallery-count {
    background: #0572CE;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 4px;
}

/*  Main Image ¿ */
.gallery-main-box {
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-main-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/*  Counter  */
.gallery-counter {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

/*  Thumbnails ¿ */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0 16px;
}

.gal-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
}

.gal-thumb:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.gal-thumb.active {
    border-color: #0572CE;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(5,114,206,0.3);
}

.tabpanel {
  display: none;
}
.tabpanel.active {
  display: block;
}


.tab-nav {
  display: flex;
  gap: 8px;
}

.tabbtn {
  position: relative;
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.tabbtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #16a34a;
  transition: width 0.25s ease;
}

.tabbtn:hover {
  color: #111827;
}

.tabbtn.active {
  color: #16a34a;
  font-weight: 600;
}

.tabbtn.active::after {
  width: 100%;
}


/* === Removed old filter whitespace patch; superseded by final responsive override. === */

/* =========================================================
   EURISCO APEX RESPONSIVE OVERRIDE CSS - COMPLETE VERSION
   Revision: keep filters + overview side-by-side on 15-inch screens

   Load this AFTER EuriscoTheme.css / paste at the very end.

   Behavior:
   - Desktop / laptop / 15-inch: filters left, overview/accessions right.
   - Small tablet: still two columns, with narrower sidebar.
   - Phone / very narrow screens: stack filters above content.
   - Overview: normal page scroll, footer visible.
   - Accessions: page locked, table wrapper owns lazy-loading scroll.
   ========================================================= */

:root {
  /* Tune these only if required */
  --eurisco-header-height: 110px;
  --eurisco-footer-height: 62px;
  --eurisco-sidebar-width: clamp(250px, 17vw, 320px);
  --eurisco-sidebar-width-laptop: 235px;
  --eurisco-sidebar-width-small: 210px;
  --eurisco-accessions-top-area-height: 150px;
  --eurisco-content-height: calc(100vh - var(--eurisco-header-height) - var(--eurisco-footer-height));
}

/* =========================================================
   1. GLOBAL RESPONSIVE SAFETY
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  min-height: 100%;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

/* Important for APEX grid/flex columns */
.t-Body,
.t-Body-main,
.t-Body-content,
.t-Body-contentInner,
.t-Region,
.t-Region-body,
.row,
.col,
[class*="col-"] {
  min-width: 0 !important;
}

/* Override unsafe global rule from main CSS: .t-Region-body { overflow:hidden } */
.t-Region-body {
  overflow: visible !important;
}

.t-Body-contentInner {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================
   2. HEADER RESPONSIVENESS
   ========================================================= */

.top-header-ex {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(10px, 2vw, 28px) !important;
  padding-right: clamp(10px, 2vw, 28px) !important;
  gap: 12px;
}

.logo {
  min-width: 0;
  flex: 0 1 auto;
}

.logo img {
  max-width: min(320px, 45vw);
  height: auto;
  max-height: 72px;
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-links a {
  flex: 0 0 auto;
  font-size: clamp(1.15rem, 1.1vw, 1.75rem);
}

/* =========================================================
   3. MAIN DASHBOARD TWO-COLUMN LAYOUT

   Recommended: add class eurisco-dashboard-layout to the APEX row
   containing the filters column and #accession-scrollable-content.

   Fallback selectors use :has() to locate the row automatically.
   ========================================================= */

.eurisco-dashboard-layout,
.row:has(.filters-container):has(#accession-scrollable-content),
.row:has(#filters-container):has(#accession-scrollable-content),
.row:has(.search-filters):has(#accession-scrollable-content) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
}

/* Left APEX column wrapper */
.eurisco-dashboard-layout > div:has(.filters-container),
.eurisco-dashboard-layout > div:has(#filters-container),
.eurisco-dashboard-layout > div:has(.search-filters),
.row:has(.filters-container):has(#accession-scrollable-content) > div:has(.filters-container),
.row:has(#filters-container):has(#accession-scrollable-content) > div:has(#filters-container),
.row:has(.search-filters):has(#accession-scrollable-content) > div:has(.search-filters) {
  flex: 0 0 var(--eurisco-sidebar-width) !important;
  width: var(--eurisco-sidebar-width) !important;
  max-width: var(--eurisco-sidebar-width) !important;
  min-width: var(--eurisco-sidebar-width) !important;
}

/* Right APEX column wrapper: fill remaining space */
.eurisco-dashboard-layout > div:has(#accession-scrollable-content),
.row:has(.filters-container):has(#accession-scrollable-content) > div:has(#accession-scrollable-content),
.row:has(#filters-container):has(#accession-scrollable-content) > div:has(#accession-scrollable-content),
.row:has(.search-filters):has(#accession-scrollable-content) > div:has(#accession-scrollable-content) {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Filters region itself */
.filters-container,
#filters-container,
.search-filters {
  flex: 0 0 var(--eurisco-sidebar-width);
  width: var(--eurisco-sidebar-width);
  max-width: var(--eurisco-sidebar-width);
  min-width: 0;
  overflow-x: hidden !important;
  background: #f8f8f8;
}

.filters-container *,
#filters-container *,
.search-filters * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Right content itself */
#accession-scrollable-content {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* =========================================================
   4. FILTER CONTROLS
   ========================================================= */

.filter-buttons-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px !important;
}

#apply-filters-btn,
#reset-filters-btn {
  max-width: 100%;
  white-space: nowrap;
}

.filter-section,
.filter-group,
.filter-field,
.country-filter-container,
.range-filter,
.climate-filter-group {
  min-width: 0;
}

.autocomplete-input,
.filter-field input,
.range-inputs input,
.climate-input {
  width: 100% !important;
  min-width: 0;
}

.filter-item,
.country-filter-item,
.checkbox-row label,
.climate-label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   5. VIEW TOGGLE BUTTONS / TABS
   ========================================================= */

.view-toggle-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 8px;
  margin: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.view-toggle-buttons .toggle-btn,
.toggle-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.accession-count-display {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* =========================================================
   6. TAB VISIBILITY GUARANTEE
   Requires JS to toggle body/html classes:
   overview-active / accessions-active
   ========================================================= */

body.overview-active #overviewRegion {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.overview-active #accessionsRegion {
  display: none !important;
}

body.accessions-active #overviewRegion {
  display: none !important;
}

body.accessions-active #accessionsRegion {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =========================================================
   7. OVERVIEW MODE
   Normal page scroll. Footer visible. Two columns preserved.
   ========================================================= */

html.overview-active,
body.overview-active {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.overview-active .t-Body,
body.overview-active .t-Body-main,
body.overview-active .t-Body-content,
body.overview-active .t-Body-contentInner {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.overview-active .t-Body-contentInner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.overview-active #accession-scrollable-content {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: flex-start !important;
}

body.overview-active #overviewRegion {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

body.overview-active #overviewRegion .row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.overview-active #overviewRegion .t-Region,
body.overview-active #overviewRegion .t-Region-body,
body.overview-active #overviewRegion .chart-container {
  max-width: 100%;
  min-width: 0;
  overflow: visible !important;
}

body.overview-active #overviewRegion svg,
body.overview-active #overviewRegion canvas {
  max-width: 100% !important;
}

body.overview-active #overviewRegion .t-Region,
body.overview-active #overviewRegion .chart-container {
  margin-bottom: 8px !important;
}

body.overview-active #overviewRegion .row,
body.overview-active #overviewRegion .container {
  margin-bottom: 8px !important;
}

body.overview-active #overviewRegion > *:last-child {
  margin-bottom: 0 !important;
}

/* Filters should not stretch to overview chart height 
body.overview-active .filters-container,
body.overview-active #filters-container,
body.overview-active .search-filters {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  align-self: flex-start !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  margin-bottom: 0 !important;
}*/

body.overview-active .filters-container > *:last-child,
body.overview-active #filters-container > *:last-child,
body.overview-active .search-filters > *:last-child {
  margin-bottom: 0 !important;
}

body.overview-active .t-Footer,
body.overview-active footer {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 20 !important;
  overflow: visible !important;
  margin-top: 0 !important;
}

/* =========================================================
   8. ACCESSIONS / POPULATIONS MODE
   Page locked. Table wrapper owns vertical lazy-load scroll.
   ========================================================= */

html.accessions-active,
body.accessions-active {
  height: 100% !important;
  overflow: hidden !important;
}

body.accessions-active .t-Body,
body.accessions-active .t-Body-main,
body.accessions-active .t-Body-content,
body.accessions-active .t-Body-contentInner {
  height: 100% !important;
  overflow: hidden !important;
}

body.accessions-active .filters-container,
body.accessions-active #filters-container,
body.accessions-active .search-filters {
  height: auto !important;
  max-height: var(--eurisco-content-height) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.accessions-active #accession-scrollable-content {
  height: var(--eurisco-content-height) !important;
  max-height: var(--eurisco-content-height) !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.accessions-active #accessionsRegion {
  display: block !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-right: 8px;
  box-sizing: border-box;
}

body.accessions-active #accessionsTableScroll {
  /* Subtracting 80px to make room for the footer */
  height: calc(var(--eurisco-content-height) - var(--eurisco-accessions-top-area-height) - 100px) !important;
  max-height: calc(var(--eurisco-content-height) - var(--eurisco-accessions-top-area-height) - 80px) !important;
  
  min-height: 240px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  display: block !important;
  -webkit-overflow-scrolling: touch;
}

body.accessions-active .t-Footer,
body.accessions-active footer {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 20 !important;
  overflow: visible !important;
  margin-top: 0px !important;
}


/* =========================================================
   9. ACCESSIONS TABLE DESIGN
   ========================================================= */

#accessionsTable,
.accessions-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

#accessionsTable th,
#accessionsTable td,
.accessions-table th,
.accessions-table td {
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  white-space: nowrap;
  font-size: 14px;
}

#accessionsTable thead th,
.accessions-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f3f3f3;
  font-weight: 700;
}

#scrollSentinel td {
  height: 30px;
  padding: 0;
  border: none;
}

/* =========================================================
   10. OTHER FIXED-WIDTH WRAPPERS FROM THEME
   ========================================================= */


.stats-container {
  flex-wrap: wrap;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.stat-card {
  width: min(320px, 100%);
}


.a-CardView-items.a-CardView-items--grid {
  padding-left: 0 !important;
}

/* =========================================================
   11. LAPTOP / 15-INCH SCREENS
   Keep filters and overview side-by-side.
   ========================================================= */

@media (max-width: 1366px) {
  :root {
    --eurisco-sidebar-width: var(--eurisco-sidebar-width-laptop);
    --eurisco-accessions-top-area-height: 145px;
  }

  .top-header,
  .top-header-ex {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .logo img {
    max-width: 260px;
    max-height: 64px;
  }

  .nav-links a {
    font-size: 1.35rem;
  }

  .view-toggle-buttons {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }


}

/* =========================================================
   12. SMALL TABLET / NARROW LAPTOP
   Still two columns. Sidebar becomes narrower.
   Do NOT stack here.
   ========================================================= */

  @media (max-width: 1024px) {
  :root {
    --eurisco-header-height: 96px;
    --eurisco-footer-height: 62px;
    --eurisco-sidebar-width: var(--eurisco-sidebar-width-small);
    --eurisco-accessions-top-area-height: 150px;
  }


  /* Keep the dashboard in two columns */
  .eurisco-dashboard-layout,
  .row:has(.filters-container):has(#accession-scrollable-content),
  .row:has(#filters-container):has(#accession-scrollable-content),
  .row:has(.search-filters):has(#accession-scrollable-content) {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .stat-card {
    width: min(280px, 100%);
}

.crop-carousel {
    width: 930px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chart-news-wrapper {
    padding-left: 5%;
    /* padding-right: 8%; */
    padding-bottom: 1%;
}

.news-containerr {
    width: 99%;
    height: 575px;
    background: white;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    padding: 20px !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}
.modal-content {
    background: #fff;
    padding: 20px 20px;
    border-radius: 6px;
    width: 65%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

#latestUpdates{
    padding-left: 25px;
}

  #accession-scrollable-content {
    overflow-x: auto;
  }

  body.overview-active #accession-scrollable-content {
    overflow-x: auto !important;
  }

  body.accessions-active #accessionsTableScroll {
    height: calc(100vh - var(--eurisco-header-height) - var(--eurisco-footer-height) - var(--eurisco-accessions-top-area-height)) !important;
    max-height: calc(100vh - var(--eurisco-header-height) - var(--eurisco-footer-height) - var(--eurisco-accessions-top-area-height)) !important;
  }

  .obtain__grid,
  .how-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   EURISCO - Unified filter height for BOTH tabs
   Problem seen in your DevTools screenshot:
   - EuriscoTheme.css:2831  body.overview-active #filters-container { height:auto !important; max-height:none !important; overflow-y:visible !important }
     -> This KILLS scrollbar in overview, makes it extend to 1670px
   - Population tab does NOT have that rule, so it stays 761px with scroll
   -> Height mismatch

   Fix: Higher specificity override using double ID #filters-container#filters-container
   This will win over EuriscoTheme.css even with !important
   Place this AFTER EuriscoTheme.css import, or in Page 3 > CSS > Inline (last)
   ========================================================================== */

/* ===================== PARENT: Same height for BOTH tabs ===================== */
html #filters-container#filters-container,
body #filters-container#filters-container,
html.overview-active body.overview-active #filters-container#filters-container,
html.page-3 #filters-container#filters-container,
html:not(.overview-active) #filters-container#filters-container {
  /* SAME FORMULA FOR BOTH TABS - adjust 120px to your header+nav height */
  height: calc(100vh - 120px) !important;
  max-height: calc(100vh - 120px) !important;
  min-height: 0 !important;
  
  /* Single scrollbar */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  
  /* Keep your Eurisco sidebar width variable */
  flex: 0 0 var(--eurisco-sidebar-width) !important;
  width: var(--eurisco-sidebar-width) !important;
  max-width: var(--eurisco-sidebar-width) !important;
  min-width: 0 !important;
  
  align-self: flex-start !important;
  position: sticky !important;
  top: 0 !important;
  
  background: #f8f8f8 !important;
  box-sizing: border-box !important;
}

/* ===================== INNER: Must be visible, not scrolling ===================== */
html #filters-container#filters-container .t-Region-body,
html #filters-container#filters-container .search-filters,
html #filters-container#filters-container div[id^="R9143776505329708895"],
html #filters-container#filters-container [class*="lto"],
html.overview-active #filters-container#filters-container .t-Region-body,
html.overview-active #filters-container#filters-container .search-filters {
  overflow: visible !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Kill the * rule that sets max-width:100% + box-sizing - it can cause nested scroll */
#filters-container * , .search-filters * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Each opened facet - limit to 220px so one big filter doesn't blow up total height */
.a-FS-facet.is-expanded .a-FS-facetBody,
.t-FacetedSearch .a-FS-facetBody {
  max-height: 240px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* ===================== RIGHT SIDE - Keep single scroll ===================== */
#accessionsTableScroll#accessionsTableScroll,
.accessions-table-scroll {
  height: calc(100vh - 120px) !important;
  max-height: calc(70vh - 120px) !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  align-self: flex-start !important;
}

/* Clean up extra bottom margin that creates white gap in overview */
html.overview-active .t-Body-contentInner {
  align-items: flex-start !important;
  align-content: flex-start !important;
  padding-bottom: 0 !important;
}