/* variables */
:root {
  /* Color Themes */
  --green-light: #00694B;
  --green-dark: #173F35;

  --header-image: url("/ICC-Image-Palm-Islands.png");

  /* Fonts */
  --header-font: 'AU Sans Display', Verdana, sans-serif;
  --body-font: 'AU Sans Text', Verdana, sans-serif;
}

/* Fonts */
@font-face {
  font-family: 'AU Sans Display';
  src: url('/ICC.Portal.Fonts.AU_Sans_Display_Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AU Sans Text';
  src: url('/ICC.Portal.Fonts.AU_Sans_Text_Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

* {
    font-family: var(--body-font);
    animation-name: none;
}

h1, .h1, h2, .h2 {
  font-family: var(--header-font);
  color: var(--green-dark);
}

h3, h4, h5, h6, div, p, a, li, button {
  font-family: var(--body-font);
}

/* Standard Layout */
body {
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

.wrapper-body {
  min-height: initial;
}

/* Header */
.navbar {
    background: linear-gradient(to right, var(--green-light) 0%, var(--green-dark) 50%, var(--green-dark) 50%);
    min-height: fit-content;
    position: relative;
    padding-bottom: 0;
    align-items: stretch;
}

.navbar::before { /* Midline blend to soften transition from dark green into image */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 24px;
  transform: translateX(-12px);
  background: linear-gradient(
    to right,
    rgba(23, 63, 53, 0.35), /* #173F35 at ~35% opacity */
    rgba(23, 63, 53, 0)
  );
  z-index: 1; /* above image, below nav content */
}

.navbar::after { /* Right-half image layer on top of a dark-green fallback */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--green-dark); /* fallback colour */
    background-image: var(--header-image);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    mask-image: linear-gradient(to right,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0.5) 100px,
      rgba(0,0,0,0.75) 180px,
      rgba(0,0,0,1) 280px
    );
    -webkit-mask-image: linear-gradient(to right,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0.5) 100px,
      rgba(0,0,0,0.75) 180px,
      rgba(0,0,0,1) 280px
    );
    z-index: 0;
}

.navbar > .container {
  z-index: 2; /* ensures the navigation buttons are in front of the image */
  position: relative;
}

.navbar-collapse {
    align-self: end; /* ensures menu items are against the bottom of header */
}

.navbar-static-top .navbar-brand {
    position: relative;
    max-width: 50%;
}

.navbar-toggler {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
}

.navbar-toggler-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: black;
}

.form-check-label p {
  font-size: 16px !important;
}

h3.sessionInformationTitle {
  visibility: hidden;
}

h1.siteTitle {
  color: white;
  font-family: var(--header-font);
  font-size: 26px;
  line-height:1.3;
}

h1.siteTitle span {
  font-size: inherit;
  display: block;
}

@media (max-width: 1199px) {
    .navbar {
      background: linear-gradient(to right, var(--green-light) 0%, var(--green-dark) 100%);
    }

    .navbar::before,
    .navbar::after { /* hide header image */
      display: none;
    }

    .navbar-brand {
      margin-bottom: 12px;
    }

    .navbar-static-top .navbar-brand {
        max-width: unset;
    }
}

/* Footer */
.footer-logo {
    height: 160px;
    margin-bottom: 13px;
}

.footer-link,
.footer-link:hover,
.footer-link:focus {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 799px) {
    .footer-logo {
        display: none;
    }
}

/* Main Nav */
.nav-item {
  margin-right: 10px;
}

.nav > li > a,
.nav > li > a:visited,
.nav > li > a:active,
.nav > li > a:hover,
.nav > li > a:focus,
.nav .show.dropdown-menu > li > a,
.nav > .dropdown > a.show,
.nav > .dropdown > a .nav > .dropdown > a:hover, .nav > .dropdown > a:focus,
.nav .show.dropdown-menu > li > a:hover,
.nav .show.dropdown-menu > li > a:active {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 0 !important;
    font-size: 14px;
    font-weight: normal;
}

.nav > li > a,
.nav > li > a:visited,
.nav > li > a:active,
.nav > li > a:hover,
.nav > li > a:focus {
    padding: 16px 32px !important;
}

.nav > li > a,
.nav > li > a:visited,
.nav .show.dropdown-menu,
.nav .show.dropdown-menu > li > a,
.nav .show.dropdown-menu > li > a:focus,
.nav > .dropdown > a.show,
.navbar-inverse.navbar-static-top .navbar-nav>li>a:active,
.navbar-inverse.navbar-static-top .navbar-nav>li>a.active,
.navbar.navbar-inverse.navbar-static-top .navbar-nav>li>a:focus,
.navbar.navbar-inverse.navbar-static-top .navbar-nav>li>a:hover {
    background-color: var(--green-dark);
    border: 1px solid transparent;
    color: white;
}

.nav > li > a:active,
.nav > li > a:hover,
.nav > li > a:focus,
.nav > .dropdown > a .nav > .dropdown > a:hover, .nav > .dropdown > a:focus,
.nav .show.dropdown-menu > li > a:hover,
.nav .show.dropdown-menu > li > a:active {
    background-color: var(--green-light);
    border: 1px solid var(--green-dark);
}

@media (max-width: 1199px) {
    .nav > li > a,
    .nav > li > a:visited,
    .nav .show.dropdown-menu,
    .nav .show.dropdown-menu > li > a,
    .nav > .dropdown > a.show {
        border-radius: 6px;
    }
}

/* Profile Nav */
.nav > .dropdown > a.show,
.nav .show.dropdown-menu > li > a,
.nav > .dropdown > a .nav > .dropdown > a:hover, .nav > .dropdown > a:focus,
.nav .show.dropdown-menu > li > a:hover,
.nav .show.dropdown-menu > li > a:active {
    padding: 6px 20px;
    color: #ffffff;
    text-align: left;
}

#navbar.show .show.dropdown-menu {
    margin-top: 8px;
    margin-bottom: 12px;
    border: 1px solid white;
}

#navbar .dropdown-menu,
.open>.dropdown-menu {
    margin-top: 0px;
}

.nav-item .dropdown-toggle::after {
    font-size: 26px;
    vertical-align: middle;
    padding-bottom: 6px;
}

.navbar-nav>li>.dropdown-menu .input-group,
.navbar-nav>li>.dropdown-menu,
.open>.dropdown-menu {
    border-radius: 6px;
    border: 1px solid #DEDEDE;
}

@media (max-width: 1199px) {
    .show.navbar-collapse .navbar-nav>li>a,
    .show.navbar-collapse .navbar-nav>li>a:visited {
        color: #FFFFFF;
        text-decoration: underline;
        background: transparent;
    }
}

/* Home Page */
.home-hero-title {
  font-weight:500;
  line-height:1.15;
  letter-spacing:.2px;
  color: var(--green-dark);
}

.home-hero-subtitle {
  opacity:.95;
  font-size:1.05rem;
  color: var(--green-dark);
} 

/* Profile Page */
#profileInfo {
  font-size: 1rem;
  margin-bottom: 10px;
}

#profileInfo a {
  font-size: 1rem;
  color: var(--green-light);
}

/* Entity forms / views */
.crmEntityFormView, .entitylist, .grid-actions {
  border: none;
}

.crmEntityFormView .cell {
  padding-bottom: 15px;
}

.crmEntityFormView h3 {
  font-size: 1.375rem;
  margin-top: 15px;
}

/* Checkbox styling */
.form-check {
  padding-block: 0.25rem;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
}

.form-check-label {
    font-weight: 400;
    padding-top: 3px;
}

.form-check-input:checked {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
}

/* Buttons */
.button,
.btn-primary,
.btn-info,
.swal-button {
    color: #FFFFFF;
    background-color: var(--green-dark);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-family: inherit;
}

.button,
.btn-primary,
.btn-info,
.swal-button,
.modal-footer .remove-value,
.grid-actions a.btn.action {
    border: 2px #34495E solid;
    min-width: 178px;
    min-height: 48px;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    text-decoration: none;
    font-family: inherit;
}

/* Search */
.input-group .btn {
  z-index: auto;
}