/* VVCOE D11 fixes - loaded after all theme CSS. */

/* Active item inside a dropdown: red background, white text (no Bootstrap blue). */
.mainul .dropdown-menu > li.active > a,
.mainul .dropdown-menu > li.active > a:hover,
.mainul .dropdown-menu > li.active > a:focus {
  background-color: #c40000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* No yellow underline bar on items inside a dropdown. */
.mainul .dropdown-menu > li,
.mainul .dropdown-menu > li.active {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.mainul .dropdown-menu > li.active::before,
.mainul .dropdown-menu > li.active::after {
  display: none !important;
}

/* Normal dropdown item hover: light red tint. */
.mainul .dropdown-menu > li > a:hover,
.mainul .dropdown-menu > li > a:focus {
  background-color: #fbe9e9 !important;
  background-image: none !important;
  color: #c40000 !important;
}

/* When the parent item is active, keep the other dropdown items in their normal colour. */
.mainul li.active .dropdown-menu > li:not(.active) > a {
  color: #333333 !important;
  background-color: transparent !important;
  background-image: none !important;
  font-weight: normal !important;
  border-bottom: 0 !important;
}

/* Hover on those items: same light red tint as on other pages. */
.mainul li.active .dropdown-menu > li:not(.active) > a:hover,
.mainul li.active .dropdown-menu > li:not(.active) > a:focus {
  color: #c40000 !important;
  background-color: #fbe9e9 !important;
}

/* Same spacing for every dropdown link, active or not (removes the extra gap under the active item). */
.mainul .dropdown-menu > li,
.mainul .dropdown-menu > li.active {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}
.mainul .dropdown-menu > li > a,
.mainul .dropdown-menu > li.active > a {
  padding: 6px 20px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  border: 0 !important;
}
/* ---- User login / password pages ---- */
.user-login-form,
.user-pass {
  max-width: 420px;
  margin: 20px auto;
}
.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-pass input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.user-login-form .form-actions,
.user-pass .form-actions {
  background: none !important;
  padding: 10px 0 !important;
}
.user-login-form input[type="submit"],
.user-login-form .form-submit,
.user-pass input[type="submit"],
.user-pass .form-submit {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 120px;
  padding: 8px 24px !important;
  font-size: 15px !important;
  line-height: normal !important;
  text-indent: 0 !important;
  color: #ffffff !important;
  background: #c40000 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 4px !important;
  cursor: pointer;
}
.user-login-form input[type="submit"]:hover,
.user-pass input[type="submit"]:hover {
  background: #990000 !important;
}

/* ---- Drupal tabs (Log in / Request new password, View / Edit) - D7 look ---- */
ul.tabs.primary {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 20px 0 15px;
  padding: 0 0 0 20px;
  border-bottom: 1px solid #bbbbbb;
}
ul.tabs.primary li {
  margin: 0 0 -1px 0;
}
ul.tabs.primary li a {
  display: block;
  padding: 6px 18px;
  border: 1px solid #bbbbbb;
  background: #ffffff;
  color: #c40000;
  border-radius: 2px 2px 0 0;
  text-decoration: none;
}
ul.tabs.primary li.active a {
  border-bottom-color: #ffffff;
}

/* Login form: left-aligned like live, normal input width. */
.user-login-form,
.user-pass {
  max-width: none;
  margin: 0;
}
.user-login-form input[type="text"],
.user-login-form input[type="password"],
.user-pass input[type="text"] {
  width: 206px;
}
/* ---- Login form: match the live D7 look exactly ---- */
/* Tabs: white, normal weight (main theme made them grey and bold). */
ul.tabs.primary li {
  background: none !important;
}
ul.tabs.primary li a {
  background: #ffffff !important;
  font-weight: normal !important;
  font-size: 15px !important;
  color: #c40000 !important;
}
/* Labels above the inputs. */
.user-login-form .form-item,
.user-pass .form-item {
  display: block !important;
  margin: 0 0 15px 0 !important;
}
.user-login-form label,
.user-pass label {
  display: block !important;
  font-weight: normal !important;
  margin: 0 0 5px 0 !important;
}
/* Red asterisk on required fields. */
.user-login-form .form-required::after,
.user-pass .form-required::after {
  content: " *";
  color: #c40000;
}
/* No grey line above the button. */
.user-login-form .form-actions,
.user-pass .form-actions {
  border: 0 !important;
  margin-top: 10px !important;
}

/* Footer at the bottom on short pages (as live) */
main.cd-main-content { min-height: calc(100vh - 243px); }
