/* Keep button next to input */
.rdw-widget .search-form form {
  display: flex;
  align-items: center;
  gap: 10px;        /* space between input and button */
  flex-wrap: nowrap; /* prevent wrapping to next line */
}

/* Let input take the remaining space on the row */
.rdw-widget .search-input {
  flex: 1 1 auto;
  min-width: 0;            /* avoid overflow in narrow layouts */
  width: auto !important;  /* override previous 85% width */
}

/* Keep button sized to its content and aligned */
.rdw-widget .search-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 16px 20px !important;
/*   height: 42px;           /* optional: makes it match input height */
  margin: 0 !important;   /* ensure no theme adds margins that push it down */
  width: auto !important; /* some themes set 100% width on submit buttons */
}

/* Search */
.search-form {
  margin-bottom: 2em;
}

.search-input {
  padding: 8px 16px;
  border-radius: 6px !important;
  outline: none !important;
  border: 1px solid #d6d8db !important;
/*   width:85% !important; */
  background: #ffffff !important;
  box-shadow:
    rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
    rgba(0, 0, 0, 0.2) 0px 1px 1px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 5px 0px !important;
}

.search-button {
  background-color: #1b2331 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 16px !important;
/*   display: block !important; */
/*   margin: 20px auto 0 10px !important; /* consolidated margins */
}

.search-button:hover {
  box-shadow: 0px 0px 2px 0.5px #E7E9EB !important; /* removed redundant color/bg */
}

/* Tabs */
.rdw-tabs {
  margin-top: 1rem;
  margin-bottom: 1rem;

}

.rdw-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rdw-tab, .rdw-tab:hover {
  appearance: none;
  border: 2px solid #1b2331;
  background: #1b2331;
  color: #ffffff;
  padding: 1rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.rdw-tab.is-active {
  border-color: #e4fb43;
  color: #e4fb43;
  background: #1b2331;
  padding: 1rem 1rem;

}

@media only screen and (max-width: 767px) {
 .rdw-tab, .rdw-tab:hover {
  appearance: none;
  border: 2px solid #1b2331;
  background: #1b2331;
  color: #ffffff;
  padding: 0.5rem 0.2rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.rdw-tab .is-active {
  border-color: #e4fb43;
  color: #e4fb43;
  background: #1b2331;
  padding: 0.5rem 0.2rem;
}
	
	.rdw-tab-panel.is-active {
		margin-bottom:2rem;
	}
}

/* Accordions */
.rdw-accordion {
  display: grid;
  gap: 0.3rem;
}

.rdw-accordion-item {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.rdw-accordion-header {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* Keep accordion header dark blue + yellow in all states */
.rdw-accordion-header,
.rdw-accordion-header:hover,
.rdw-accordion-header:focus,
.rdw-accordion-header:active,
.rdw-accordion-header[aria-expanded="true"],
.rdw-accordion-item.open .rdw-accordion-header {
  background-color: #1b2331 !important;
  color: #e4fb43 !important;
  padding:15px;
}

.rdw-accordion-icon {
  font-weight: 700;
  transition: transform 0.2s ease;
}

.rdw-accordion-item.open .rdw-accordion-icon {
  transform: rotate(45deg); /* turn + into × */
}

/* Ensure inner elements (text and +/× icon) stay yellow */
.rdw-accordion-header .rdw-accordion-icon,
.rdw-accordion-header span {
  color: inherit;
}

/* Accessible focus ring while keeping colors */
.rdw-accordion-header:focus-visible {
  outline: 2px solid #e4fb43;
  outline-offset: 2px;
}

.rdw-empty {
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

/* Unique styling for RDW accordion tables */
.rdw-accordion-table {
	width: 100%;
	border-collapse: collapse; /* enables single line between rows */
	margin:0;
}

.rdw-accordion-table td,
.rdw-accordion-table th {
  padding: 10px 12px;
  border: none;           /* remove any cell borders */
  text-align: left;
}

/* Only a horizontal line between rows */
.rdw-accordion-table tbody tr + tr {
  border-top: 2px solid #e5e7eb; /* adjust color if needed */
}

/* Optional: label vs value styling */
.rdw-accordion-table td:first-child {
  	color: #374151;
	font-weight: 500;
}

.rdw-accordion-table td:last-child {
  color: #374151;
}

/* Optional: empty state (only padding specific to table) */
.rdw-accordion-table .rdw-empty {
  padding: 12px;
}