:root {
  --whs-dark-blue: #00547e;
  --whs-mid-blue: #006fa7;
  --whs-blue: #6ba6d6;
  --whs-light-blue: #dbefff;
  --whs-dark-grey: #4e4e4d;
  --whs-red: #EC0016;
  --whs-dark-red: #a70818;
}

/** Base **/

main {
  min-height: 100vh;
  min-height: calc(100vh - 164px);
}
body {
  font-family: sans-serif;
  font-size: 87.5%;
  color: var(--whs-dark-grey);
  background-color: #fff!important;
  margin: 0;
}
a,
.ui-widget-content a {
  color: var(--whs-dark-blue);
}
h1 {
  font-weight: bold;
}
.h2 {
  font-size: 1.5em;
  text-transform: capitalize;
}
h3 {
  margin: 5px 0;
}
p {
  margin: 0 0 1em;
}
hr {
  border-top-color: transparent;
  border-bottom-color: var(--whs-dark-blue);
  border-left-color: transparent;
  border-right-color: transparent;
  margin: 20px 0;
}
.layout-container {
  margin: 1.5rem;
}
li {
  margin-bottom: 0.3em;
}
:focus:not(.select2-search__field):not(.ui-dialog):not(.cookiesjsr-btn):not(.cookiesjsr-service-group--tab),
.js .dropbutton li:focus,
.js .dropbutton a:focus,
.dropbutton-toggle button:focus,
.swal2-popup .swal2-styled:focus,
.ui-dialog .select2 .selection:focus-within,
.layout-container .select2-container--lift8 .selection:focus-within {
  outline: 2px solid var(--whs-red)!important;
  outline-offset: 2px!important;
  box-shadow: none!important;
}
.button:active,
.button:active:hover,
.button:focus:hover,
.button:focus {
  background: var(--whs-dark-blue)!important;
  color: #fff;
}

/** Flex/Other Basic Classes **/

.flex {
  display: flex;
  flex-wrap: wrap;
}
.flexsa {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.flexsb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.flexsb100 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.flexnowrap {
  display: flex;
}
.flexleft {
  margin: 0 -1rem;
}
.flexspace {
  justify-content: space-between;
  margin: 0 -1rem 1rem;
}
.flexpad {
  padding: 0 1rem;
  flex-grow: 1;
}
.flexpadnogrow {
  padding: 0 1rem;
}
.flexend {
  align-self: flex-end;
}
.flex1 {
  flex: 1;
  padding: 0 1rem;
  min-width: 240px;
}
.flex2 {
  flex: 2;
  padding: 0 10px;
}
.flexcell {
  display: flex;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
}
.flexspace details + details {
  margin-top: 20px;
}
.flexdate {
  align-items: flex-end;
}
.flexcentre {
  display: inline-flex;
  align-items: center;
}
.flexcentre.right {
  margin-left: auto;
}
.flex-direction-column {
  flex-direction: column;
}
header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--whs-dark-blue);
}
.clear-both {
  clear: both;
}
.center {
  align-items: center;
  text-align: center;
}
.sidemargins {
  margin: 0 2rem;
}
.margintop {
  margin-top: 1rem;
}
.marginbottom {
  margin-bottom: 1rem;
}
.right > .nomargin {
  margin: 0!important;
}
.right {
  float: right;
}
a.right {
  float: right;
}
.right + .right, 
.right + .ajax-progress + .right {
  margin: 0!important;
}
.text-right {
  text-align: right;
}
.underline { 
  text-decoration: underline!important;
}
img.icon,
.icon img {
  height: 18px;
  width: 17px;
  display: inline-flex;
  position: relative;
  top: 4px;
  margin-top: -5px;
}

/** Forms **/

form input,
select {
  padding: 7px;
  font-size: 1rem;
  border: 1px solid var(--whs-dark-grey);
  margin: 5px 0 3px;
  max-width: 100%;
  font-family: sans-serif;
  border-radius: 5px;
}
form input[type=text],
form input[type=tel],
form input[type=email] {
  width: 50%;
  min-width: 300px;
  box-sizing: border-box;
  margin-top: 5px;
  height: 36px;
}
form input[type=text].form-time {
  min-width: 90px;
  max-width: 90px;
  text-align: left;
  background: url(/themes/lift8/images/icons/clock.svg) no-repeat 65px center;
  background-size: 17px;
  background-color: #fff;
  font-size: 1em;
}
form.views-exposed-form input[type=text],
form.views-exposed-form input[type=tel],
form.views-exposed-form input[type=email] {
  min-width: 250px;
  max-width: 250px;
}
form.views-exposed-form .fieldset-wrapper .form-type-date {
  margin-bottom: 0!important;
}
form.views-exposed-form .fieldset-wrapper .form-item-submitted-min-date input {
  margin-right: 0.5em;
}

.form-type-radio,
.form-type-checkbox {
  display: flex;
  align-items: center;
}
.form-type-radio label,
.form-type-checkbox label {
  margin-left: 0.5rem;
}
.form-type-radio input,
.form-type-checkbox input {
  scale: 1.2;
}
.view-filters {
  background: var(--whs-light-blue);
  padding: 0.5rem 1rem;
  margin: 2rem 0 1rem;
}
.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
form.views-exposed-form select {
  padding: 8px;
  font-size: 0.875rem;
  border: 1px solid #999;
  margin: 5px 0 3px;
  max-width: 100%;
  font-family: sans-serif;
  background: #fff;
  color: #666;
  min-height: 36px;
  box-sizing: border-box;
}
form.views-exposed-form input[type=text].form-time {
  position: relative;
  top: 0;
}
.ui-timepicker-standard {
  z-index: 10000!important;
}
.ui-timepicker-standard a {
  margin-right: 20px;
}
form:not(.views-exposed-form) .datetime-wrapper + .datetime-wrapper {
  margin-top: -1em;
}
form.views-exposed-form .datetime-wrapper input {
  height: 37px;
  margin-top: 4px;
}
form.views-exposed-form .datetime-wrapper > div {
  display: flex;
}
form.views-exposed-form input.timepicker {
  margin-left: 5px;
}
form.views-exposed-form .fieldset-legend {
  display: none;
}
form.views-exposed-form .fieldset-wrapper {
  display: flex;
}
form.views-exposed-form .fieldset-wrapper .form-item {
  margin: 0 1em 1em 0;
}
form.views-exposed-form fieldset {
  border: 0;
  padding: 0;
}
.form-disabled {
  opacity: 0.4;
}
textarea {
  padding: 7px;
  font-size: 100%;
  font-family: sans-serif;
  width: 50%;
  min-width: 320px;
  box-sizing: border-box;
  margin-top: 5px;
}
form label {
  display: block;
  font-weight: bold;
}
form:not(.vbo-view-form) .form-item {
  margin-bottom: 1em;
}
form.views-exposed-form .form-item {
  margin-right: 1em!important;
}
form.views-exposed-form fieldset.form-item {
  margin-right: 0;
  margin-left: 0;
}
form.views-exposed-form fieldset.form-item .form-item {
  margin-right: 1em;
  margin-left: 0;
}
form.views-exposed-form fieldset.form-item .form-item:last-child {
  margin-right: 0!important;
  margin-left: 0;
}
form .description {
  font-size: 0.8rem;
  clear: both;
}
.field-group-tab {
  padding: 2rem;
}
.views-bulk-operations-configure-action .form-type-radio {
  margin: 0.5em 0 0!important;
}
.views-bulk-operations-configure-action legend {
  font-weight: bold;
}
ul.pager__items {
  list-style: none;
  display: flex;
  justify-content: center;
}
ul.pager__items li {
  padding: 0 0.5em;
}

/** Tables **/

table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  background: #fff;
}
table tr th {
  padding: 5px 10px;
  text-align: left;
  color: var(--whs-dark-blue);
  background: #fff;
  border-bottom: 2px solid;
}
table tr td {
  padding: 5px 10px;
  text-align: left;
}
table tr th, table tr th a, table tr th a:hover {
  font-weight: bold;
}
table tr td {
  border-bottom: #E1E6EB 1px solid;
}
table tr table tr th {
  border-bottom: 1px solid;
}
table tr table td {
  border-bottom: #E1E6EB 0px solid;
}
table td.no-padding {
  padding: 0;
}
table td.no-padding table {
  margin: 0;
  border-spacing: 0;
}
table td.no-padding table td {
  border-bottom: 2px solid #fff;
}
table td.no-padding table td:not(:first-child) {
  border-left: 2px solid #fff; 
}
table tbody tr {
  background-color: #fff;
  transition: background-color 0.2s linear;
}
table tbody tr:hover {
  background-color: var(--whs-light-blue);
  transition: background-color 0.2s linear;
}
table tbody table {
  border-spacing: 0;
}
table tfoot tr {
  background: none!important;
  font-weight: bold;
}
table .form-type-checkbox {
  margin: 0!important;
}
table input[type="checkbox"] {
  scale: 1.2;
  margin: 0;
}
.views-field-user-bulk-form,
.views-field-views-bulk-operations-bulk-form {
  width: 33px;
  box-sizing: border-box;
}
.fixedfirstcol table th:first-child,
.fixedfirstcol table td:first-child {
  width: 100px;
  min-width: 100px;
}
.fixedfirstcolwide table th:first-child,
.fixedfirstcolwide table td:first-child {
  width: 250px;
  min-width: 250px;
}
.fixedlastcol table th:last-child,
.fixedlastcol table td:last-child {
  width: 110px;
  min-width: 110px;
}
.fixedlastcolmed table th:last-child,
.fixedlastcolmed table td:last-child {
  width: 150px;
  min-width: 150px;
}
.fixedlastcolwide table th:last-child,
.fixedlastcolwide table td:last-child {
  width: 250px;
  min-width: 250px;
}
.lastcolright table th:last-child,
.lastcolright table td:last-child,
table.lastcolright th:last-child,
table.lastcolright td:last-child {
  text-align: right;
}
.nowrap table th,
.nowrap table td {
  white-space: nowrap;
}
.views-field-view table tr th,
.views-field-view table tr td {
  background-color: aliceblue;
}
table.user-header {
  width: auto;
}
.views-field-view table {
  margin: 0;
}
table[id^="field-dates-hours-values"] {
  width: auto;
}
table[id^="field-dates-hours-values"] .form-item {
  margin-bottom: 0!important;
}
.tabledrag-toggle-weight-wrapper {
  display: none;
}

/* Info pane */

.infopane {
  flex-direction: column;
  padding: 1em;
  background: url(/themes/whs/images/icons/info-white.svg) no-repeat aliceblue;
  background-size: contain;
  background-position: center right;
  margin-bottom: 1em;
}

.infopane > div {
  margin-bottom: 20px;
}

/** Envs **/

body.env-local .layout-container:before,
body.env-dev .layout-container:before,
body.env-staging .layout-container:before {
  display: block;
  width: calc(100% + 3rem);
  font-size: 2.5rem;
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  text-align: right;
  font-weight: bold;
  color: #fff;
  margin: -1.5rem -1.5rem 1.5rem;
}
body.env-local .layout-container:before {
  content: "LOCAL";
  background-color: #c87474;
  background-blend-mode: color-burn;
}
body.env-dev .layout-container:before {
  content: "DEV";
  background-color: #7d82cc;
  background-blend-mode: color-burn;
}
body.env-staging .layout-container:before {
  content: "STAGING";
  background-color: #a079d0;
  background-blend-mode: color-burn;
}

/** Dialog popup **/

.ui-widget.ui-widget-content {
  background-color: #fff;
}
.ui-widget-overlay {
  background: rgba(22, 125, 134, 0.85);
  opacity: 1;
}
.ui-dialog {
  margin-top: 100px;
  border: 0!important;
  border-radius: 5px!important;
  width: auto!important;
  max-width: 85vw;
  min-width: 320px;
  position: relative;
  margin: 100px auto 0!important;
  z-index: 1000;
  background-color: #fff;
}
#drupal-modal {
  overflow-x: hidden;
}
#drupal-modal .no-modal {
  display: none;
}
.modal-only {
  display: none;
}
#drupal-modal #project-links {
  display: none;
}

#drupal-modal .modal-only {
  display: inherit;   
}
form #messages {
  display: none;
}
#drupal-modal form #messages {
  display: inherit;
}
#drupal-modal h1 {
  display: none;
}
.ui-dialog-titlebar {
  padding: 50px 1em 0!important;
  border: 0!important;
  background: url(/themes/whs/whs-logo.png) 15px 15px no-repeat #fff!important;
  background-size: 120px!important;
  border-radius: 5px!important;
}
.ui-dialog .ui-dialog-title {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  margin: 0 0 5px;
  background-color: #fff!important;
}
.ui-dialog-titlebar-close {
  background: url(/themes/whs/images/icons/close-button.jpg) no-repeat!important;
  background-size: 20px!important;
  width: 20px;
  height: 20px;
  top: 15px!important;
  right: 15px!important;
  border: 0!important;
  margin: 0!important;
}
.ui-dialog-titlebar-close span {
  display: none;
}
.ui-dialog-titlebar-close:hover,
.ui-dialog-titlebar-close:focus {
  background: url(/themes/whs/images/icons/close-button.jpg) no-repeat!important;
  background-size: 20px!important;
}
.ui-dialog .entity-meta {
  padding: 15px;
  box-sizing: border-box;
}
.ui-dialog .form-item {
  margin-bottom: 10px;
}
.ui-dialog input {
  padding: 5px;
  box-sizing: border-box;
}
.ui-dialog .select2 {
  margin-top: 5px;
  border: 1px solid #999;
}
.ui-dialog .description {
  font-size: 0.8rem;
  margin-top: 3px;
  max-width: 400px;
}
.ui-dialog label {
  width: 100%;
  display: block;
  font-weight: bold;
}
.ui-dialog .field--type-boolean label {
  display: inline-block;
  font-weight: normal;
  width: inherit;
}
.ui-widget textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}
.ui-widget .js-form-type-vertical-tabs {
  order: 998;
}
.ui-widget form {
  display: flex;
  flex-direction: column;
}
.ui-widget .entity-content-form-footer {
  order: 999;
}
.ui-dialog input.form-submit {
  border: 0;
}
#drupal-modal form div[data-drupal-selector="edit-actions"] {
  display: none;
}

/* Off-Canvas */

#drupal-off-canvas-wrapper {
  border-radius: 0 !important;
}
#drupal-off-canvas-wrapper input:where(:not([type="submit"], [type="checkbox"], [type="radio"], [type="file"])) {
  max-width: 280px!important;
}
#drupal-off-canvas-wrapper .ui-dialog-titlebar::before {
  display: none!important;
}
#drupal-off-canvas-wrapper .ui-dialog-title {
  color: var(--whs-dark-blue);
}
#drupal-off-canvas-wrapper .ui-dialog-titlebar {
  border-radius: 0!important;
  padding-bottom: 1em !important;
}
#drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before,
#drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  display: none;
}
#drupal-off-canvas-wrapper .ui-dialog-titlebar-close {
  top: 50%!important;
  width: 20px!important;
  height: 20px!important;
}

/* Buttons */

a.button {
  background: var(--whs-dark-blue);
  color: #fff;
  padding: 0.5rem 0.75rem 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 0.5rem;
  display: inline-block;
}
a.button:hover {
  background: var(--whs-mid-blue);
}
a.button.cancel {
  background: var(--whs-red);
}
a.button.cancel:hover {
  background: var(--whs-dark-red);
}
.unmasquerade li {
  list-style: none;
}
.unmasquerade li a {
  padding: 0.5rem 1rem;
  background-color: var(--whs-red);
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

/* Tabs */

.homepage-tabs {
  background: var(--whs-light-blue);
  padding: 1rem;
  border-radius: 10px;
}
.tabcontent {
  background: #fff;
  padding: 0.5rem 1rem;
}
button.tablink,
a.tablink {
  background: var(--whs-dark-blue);
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 3px solid #e1e6eb;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  margin-right: 3px;
}
button.tablink.right,
a.tablink.right {
  margin-left:4px;
}  
a.tablink {
  text-decoration: none;
}
button.tablink.active,
button.tablink.active:focus {
  border-bottom: 3px solid #fff;
  color: var(--whs-dark-grey);
  background: #fff!important;
  pointer-events: none;
  order: 100;
}
a.tablink.active {
  pointer-events: initial;
}
button.tablink:hover,
a.tablink:hover {
  background: rgba(22,125,134,0.08);
  transition: background 0.2s linear;
}
.tab.homepage-box-title {
  display: flex;
  flex-wrap: wrap;
}

/* Menu */

.logged-in {
  margin-right: 2rem;
}
.whs-menu {
  position: relative;
}
.whs-menu svg {
  width: 40px;
  cursor: pointer;
}
.whs-menu summary {
  display: inline-block;
  border-bottom: none;
  margin-bottom: 0;
}
.whs-menu #settings-menu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  background: aliceblue;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
  min-width: 250px;
}
#settings-menu a {
  color: var(--whs-dark-blue);
  padding: 0.75rem;
  margin-right: 1rem;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-decoration: none;
}
#settings-menu a:hover {
  background: var(--whs-light-blue);
  text-decoration: none!important;
}
#settings-menu a img {
  padding-right: 10px;
}

/* Maintenance Mode */

.maintenance-mode-message {
  padding: 1rem;
  font-size: 1.1rem;
  background-color: #ffcc00;
}
.maintenance-mode-message p {
  margin: 0;
}

/* Login form */

a.button-o365-sso {
  font-size: 1.3rem;
  background: var(--whs-light-blue);
  padding: 0.5rem 1rem 0.5rem;
  border: 1px solid var(--whs-dark-grey);
  border-radius: 5px;
  margin-bottom: 1rem;
  display: inline-flex;
  text-decoration: none;
  color: var(--whs-dark-blue);
}
a.button-o365-sso:hover {
  background: var(--whs-dark-blue);
  color: #fff;
}
.path-user #edit-o365-actions::after {
  clear: both;
  content: 'OR';
  font-weight: bold;
  display: block;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Local tasks */

#block-whs-primary-local-tasks > ul {
  display: flex;
  padding: 0;
}
#block-whs-primary-local-tasks > ul li {
  list-style: none;
}
#block-whs-primary-local-tasks > ul li a {
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--whs-mid-blue);
  color: var(--whs-mid-blue);
  border-radius: 3px;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}
#block-whs-primary-local-tasks li a.is-active {
  display: none;
}

/* Status */

.status.paid {
  color: rgb(45, 143, 255);
  font-weight: bold;
}
.status.approved {
  color: green;
  font-weight: bold;
}
.status.rejected {
  color: var(--whs-dark-red);
  font-weight: bold;
}

/* Excel download */

.filedownload {
  margin-top: 1rem;
}
.export-xlsx a[type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] {
  background: url(/themes/whs/images/icons/xls.png) no-repeat;
  padding: 40px 0 0;
  display: inline-block;
  margin: 0 0 2rem;
}

/* Log */

.log p {
  border-bottom: 2px solid gray;
}

/* Responsive layout */

@media only screen and (max-width: 850px) {
  .logged-in .you-are,
  .whs-menu,
  .unmasquerade {
    display: none;
  }
  .logged-in,
  .logged-in a.button {
    margin-right: 0;
  }
  table tr th {
    max-width: 25vw;
  }
  table.footable-details {
    margin-top: 0;
  }
  table.footable-details tr th {
    border-bottom: 0;
  }
  table tr.footable-detail-row:hover,
  table.footable-details tr:hover {
    background-color: #fff;
  }
  table.footable-details > tbody > tr > th:nth-child(1) {
    width: 40vw;
  }
  table.footable-details td.views-align-right {
    text-align: left;
  }
}

@media only screen and (max-width: 400px) {
  .logo img {
    width: 50vw;
  }
}
