/* Styles for menu & submenus*/
/* — Navbar base — */
.navbar-nav {
  display: flex;
  list-style: none;
  flex-direction: row;
  align-items: center;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a, .nav > li > a {
  color: #069;
  background-color: #fff;
  text-decoration: none;
}

.navbar-nav > li > a:hover, .nav > li > a:hover {
  color: #fff !important;
  background-color: #006699 !important;
}

/* Active / selected styling */
.navbar-nav > li.active > a, .nav > li.active > a {
  background-color: #069 !important;
  color: #fff !important;
}

.nav-item > a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
}

.navbar-nav .has-children::after {
  display: inline-block;
  content: " ";
  margin-left: 8px;
  vertical-align: .155em;
  border-top: .35em solid;
  border-right: .35em solid transparent;
  border-left: .35em solid transparent;
}

/* — Dropdown base — */
.dropdown-menu {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0 !important;
  min-width: 12rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu > li > a {
  color: #fff !important;
  background-color: #069;
  display: block;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  white-space: nowrap;
  border: 1px solid #8da52b;
}


.dropdown-menu > li > a:hover,
.dropdown-menu > li.active > a, .nav-item > a.is-active {
  background-color: #fff !important;
  color: #069 !important;
}

/* — Submenu / nested dropdown styling — */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-menu {
  display: none;
  min-width: max-content !important;
}
.dropdown-menu .parent-link a {
  font-weight: 600;
  padding: 0.75rem 1rem;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
/* Show on hover (desktop) */
ul.nav li.dropdown:hover > ul.dropdown-menu,
ul.nav li.dropdown-submenu:hover > ul.dropdown-menu {
  display: block;
}

.navbar-toggler {
  background-color: #069;
  color: #fff;
  opacity: 100% !important;
}
/* Caret styling for dropdowns */
.navbar-nav .dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: .155em;
  border-top: .35em solid;
  border-right: .35em solid transparent;
  border-left: .35em solid transparent;
}

/* Hover/focus caret color */
.navbar-nav .nav-link.dropdown-toggle:hover::after, .navbar-nav .nav-link.dropdown-toggle:focus::after {
  border-top-color: #fff; /* match your hover color */
}

/* Submenu caret hover */
.dropdown-menu .dropdown-toggle:hover::after {
  border-left-color: #fff;
}

/* — Responsive / mobile adjustments — */
@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
  }
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    display: none;
  }
  .dropdown-submenu > .dropdown-menu {
    padding-left: 1rem;
  }
  .dropdown.open > .dropdown-menu,
  .dropdown-submenu.open > .dropdown-menu {
    display: block;
  }
  .navbar-nav .dropdown-toggle::after, .dropdown-submenu > .has-children::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: .155em;
    content: "";
    border-top: .35em solid;
    border-right: .35em solid transparent;
    border-left: .35em solid transparent;
  }
  .navbar-toggler-icon {
    opacity: 10 !important;
    background-size: 100% !important;
  }
  .navbar-nav {
    flex-direction: column;
  }
  .dropdown-menu {
    display: none;        /* default hidden on mobile */
    position: static;     /* stack in flow */
  }
  .navbar-nav li.submenu-open > .dropdown-menu,
  .navbar-nav li.submenu-open .dropdown-menu {
    display: block !important; /* show when JS toggles submenu-open */
  }

  /* indent nested submenus */
  .dropdown-submenu > .dropdown-menu {
    padding-left: 1rem;
  }
}
/* Desktop: hover shows submenus */
@media (min-width: 992px) {
  .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
  }
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  .dropdown-menu .dropdown-toggle::after, .dropdown-submenu > .has-children::after {
    display: inline-block;
    content: " ";
    width: 0;
    height: 0;
    vertical-align: .155em;
    border-color: transparent;
    border-left-color: transparent;
    border-style: solid;
    border-width: .35em 0 .35em .35em;
    border-left-color: #ffffff;
    margin-top: 0;
    margin-left: 10px;
  }
  .dropdown-submenu .dropdown-toggle:hover::after {
    border-left-color: #069;
  }

  .dropdown-item-parent-link {
     display: none !important;
  }
}

/* Ensure nested submenu positions to the right */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none; /* shown on hover or .submenu-open */
}

/* --- Mobile menu refinements --- */
@media (max-width: 991.98px) {
  /* Align text and caret properly */
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .menu-link,
  .navbar-nav .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #004b80;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .navbar-nav .menu-link:hover,
  .navbar-nav .dropdown-item:hover {
    background-color: #e9f2f9;
    color: #002b4d;
  }

  /* Nested dropdowns */
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    background-color: #f8f9fa;
    box-shadow: none;
    margin-left: 1rem;
    border-left: 2px solid #004b80;
  }

  .dropdown-item-parent-link-wrapper {
    padding: 0.25rem 1rem 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
  }

  .dropdown-item-parent-link {
    display: block;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    padding: 0.25rem 0;
  }

  .dropdown-item-parent-link:hover {
    text-decoration: underline;
  }

  .dropdown-item-parent-link span::before {
    content: "↳ ";
    opacity: 0.6;
  }
/* Rotate the caret
 .navbar-nav .dropdown-submenu > a::after {
    transform: rotate(-90deg);
  }
 */
}

/* Optional: active link styling */
.navbar-nav .active > .menu-link,
.navbar-nav .dropdown-item.active {
  background-color: #004b80;
  color: #fff !important;
}

/* End style for menu & submenu*/
/* General text styles*/
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #6a7d20;
}
.h1, h1 {
	font-size: 2.0rem;
}
.h2 , h2 {
	font-size: 1.5rem;
}
.h3, h3{
	font-size: 1.0rem;
}
.table, table {
	font-size: 0.875rem;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.btn-primary {
  background-color: #069;
  border-color: #069;
  margin: .3em;
  vertical-align: initial;
  color: #fff !important;
}
.report-download-link .report-grid {
  background-color: #069;
  color: #fff;
  padding: 6px 12px;
  border: 1px solid #069;
  border-radius: 8px;
}
.report-download-link .report-grid:hover {
	background-color: #007bff;
    border-color: #007bff;
}
table.report-grid {
	color: #000;
}
.report-download-link {
  margin-top: 9px;
}
.btn-primary:hover {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}
.btn-secondary {
  background-color: #069;
  border-color: #069;
}
.btn-secondary:hover {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}
table tr th, table tr th a, table tr th a:focus {
    background-color: #069 !important;
	color: #fff !important;
}
tr td {
  border-bottom: 1px solid #91A31A;
}
tr.odd {
   background: #f0f0f0;
}
tr:nth-child(even)
{
    background-color: #d9edf7;
}
label {
	font-weight: 700;
}
/* End general text styles */
/* Search box*/
#search-block-form  {
    display: block !important;
}
/* user login & register form*/
#user-login-form {
	padding: 15px;
}
#user-login-form .actions-suffix {
	bottom: 60px !important;
	right: 25px !important;
	background-color: #006699;
    border-color: #006699;
    padding: 7px;
    border-radius: 5px;
}
#user-login-form .actions-suffix a {
	color: #fff;
}
p.forgot-password {
	display: block !important;
}
p.login-title {
  background: #8da52b;
  color: #fff;
  font-weight: bold;
  padding: 5px;
}
.block-user-login-block .item-list {
	display: none;
}
.details-wrapper {
	background: #CFF4FC;
	padding: 15px;
}
/* fields on any forms*/
.field__label {
	width: 25% !important;
}

.indicia-button {
	opacity: unset !important;
	border: 1px solid #000;
}
button:hover, .indicia-button:hover {
	background-color: #337AB7 !important;
	border-color: #BCE8F1 !important;
	color: #fff !important;
}
@media only screen and (min-width: 1025px) {
	.standard-params-horizontal .form-control {
		display: inline !important;
		width: auto !important
	}
}
.form-control {
	appearance: auto !important;
}
@media (min-width: 768px) {
	dt {
		float: left;
		width: 200px;
		text-align: right;
	}
	dd {
		margin-left: 220px !important;
	}
}
.date-text {
	display: none !important;
}
/* Image gallery stuff */
.gallery-item, .gallery li, .summary-report {
	text-align: center;
	padding: 0.5em;
	margin: 0.5em;
	display: inline-block;
	vertical-align: middle;
	*vertical-align: auto;
	*zoom: 1;
	*display: inline;
	list-style-type: none;
	background: none;
	-moz-box-shadow: silver 3px 3px 6px;
	-webkit-box-shadow: silver 3px 3px 6px;
	box-shadow: silver 3px 3px 6px;
	border: solid silver 1px;
}

.gallery li button {
	overflow: hidden;
}
a.button {
    color: #ffffff;
    background-color: #006699;
    border-color: #006699;
    padding: 8px;
	border-radius: 5px;
}
.es-data-grid thead th, .forum thead th {
	background: #006699;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.933em;
}
.filter-row {
  background-color: #d9edf7 !important;
}
.alert {
	opacity: 1 !important;
}
.panel-heading {
  color: #31708f;
  background-color: #d9edf7;
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  margin-bottom: 10px;
}
.input-sm {
	width: auto;
}
.footer .form-inline {
	display: ruby;
}
tr.footer td {
	background-color: #eee;
}
/* end indicia related*/
/* style for footer*/
.footer-fourth
 {
    float: right !important;
}
.site-footer .content a, .site-footer .content a.is-active {
	color: #069;
}
.site-footer {
    margin-top: 45px;
    padding-top: 35px;
    padding-bottom: 36px;
    border-top: 1px solid #e5e5e5;
}
.input-group-addon {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #555555;
    text-align: center;
    background-color: #eeeeee;
    border: 1px solid #ccc;
    border-radius: 4px;
}