:root {
  --ecit-black: #000;
  --ecit-red: #ff0e26;
  --ecit-amber: #e09600;
  --ecit-dark-grey: #002c55;
  --ecit-darker-grey: #01203d;
  --ecit-mid-grey: #767b86;
  --ecit-light-grey: #afb1b3;
  --ecit-extra-light-grey: #e5eaee;
  --ecit-super-light-grey: #e5eaee66;
  --ecit-green: #199b14;
  --ecit-white: #fff;
}

/** General **/

body {
  font-family: sans-serif;
  font-size: 85%;
  margin: 0;
  color: var(--ecit-black);
  background-color: var(--ecit-white)!important;
}

.logo {
  padding: 10px 0px 10px;
  width: 75px;
}

main {
  margin: 0 1vw 1vw;
  min-height: 100vh;
  min-height: calc(100vh - 164px);
}

.messages {
  margin: 8px!important;
}

.no-border {
  border: none;
}

a,
.ui-widget-content a {
  color: var(--ecit-darker-grey);
  text-decoration: underline!important;
}
a:hover,
.ui-widget-content a:hover {
  color: var(--ecit-white);
  text-decoration: underline!important;
}
h1 {
  font-family: sans-serif;
  font-weight: bold;
  text-transform: capitalize;
}
h4 {
  margin: 0.5rem 0 0.25rem;
}

#block-ecit-page-title {
  background: var(--ecit-dark-grey);
  color: #fff;
  padding: 0.5em 1vw;
  margin: 0 -1vw 0.5em;
}
#block-ecit-page-title h1 {
  margin: 0;
}
.h2 {
  font-size: 1.5em;
  text-transform: capitalize;
}
.view-faqs .h2 {
  text-transform: unset;
}
h3 {
  margin: 0.2em 0;
}
details {
  margin-top: 0.5em!important;
  margin-bottom: 0.5em!important;
}
details.wide {
  width: 100%;
}
details details .h2 {
  font-size: 1.2em;
}
p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

.editlink img {
  width: 30px;
  height: auto;
}

hr {
  border-top-color: transparent;
  border-bottom-color: var(--ecit-dark-grey);
  border-left-color: transparent;
  border-right-color: transparent;
  margin: 20px 0;
}
.underline { 
  text-decoration: underline!important;
}
.layout-container {
  margin: 0;
}
li {
  margin-bottom: 0.3em;
}
.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 -10px;
}
.flexspace {
  justify-content: space-between;
  margin: 0 -10px 1em;
}
.flexpad {
  padding: 0 10px;
  flex-grow: 1;
}
.flexpadnogrow {
  padding: 0 10px;
}
.flexend {
  align-self: flex-end;
}
.flexgap {
  gap: 2em;
}
.flex1 {
  flex: 1;
  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;
}
.clear-both {
  clear: both;
}
.center {
  align-items: center;
  text-align: center;
}
.sidemargins {
  margin: 0 1vw;
  position: relative;
}

.margintop {
  margin-top: 20px;
}


/** Tables **/

table {
  width: 100%;
  margin: 5px 0;
  background: var(--ecit-white);
}
table.small {
  width: inherit;
}
table tr th {
  padding: 7px 5px;
  text-align: left;
  color: var(--ecit-dark-grey);
  background: var(--ecit-white);
  border-bottom: 2px solid;
}
table tr td {
  padding: 1px 5px;
  text-align: left;
}
table tr th, table tr th a, table tr th a:hover {
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--ecit-dark-grey);
}
table tr th a {
  width: 100%;
  display: inline-block;
}
table tr th a .tablesort {
  float: right;
}
table tr th.views-align-right a .tablesort {
  float: left!important;
}
table tr td {
  border-bottom: #E1E6EB 1px solid;
}
table td.is-active {
  background-color: var(--ecit-super-light-grey);
}
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 var(--ecit-white);
}
table td.no-padding table td:not(:first-child) {
  border-left: 2px solid var(--ecit-white); 
}
table tfoot tr {
  background: none!important;
  font-weight: bold;
}
table tfoot tr td {
  font-weight: bold;
  padding: 5px 5px 3px;
}
.sumcols table tfoot tr td {
  text-align: right;
}

.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: 75px;
  min-width: 75px;
}
.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;
}

.icon img {
  width: 18px;
  max-width: initial;
}


/** Forms **/

form input,
select {
  padding: 5px;
  font-size: 0.8rem;
  color: #666;
  border: 1px solid #999;
  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: 5px 0 3px;
  height: 28px;
}
form input[type=text].form-time {
  min-width: 90px;
  max-width: 90px;
  text-align: left;
  background: url(/themes/ecit/images/icons/clock.svg) no-repeat 65px center;
  background-size: 17px;
  background-color: var(--ecit-white);
  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;
}
.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
}
.views-exposed-form > div {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

form.views-exposed-form .label {
  font-size: 0.8rem;
}
form.views-exposed-form select {
  padding: 5px;
  font-size: 0.8rem;
  border: 1px solid #999;
  margin: 5px 0 3px;
  max-width: 100%;
  font-family: sans-serif;
  background: var(--ecit-white);
  color: #666;
  box-sizing: border-box;
}

form.views-exposed-form input[type=text].form-time {
  position: relative;
  top: 0;
}

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 0 0;
}
form.views-exposed-form fieldset {
  border: 0;
  padding: 0;
}
form.views-exposed-form fieldset .date-filter-arrow {
  position: relative;
  top: 16%;
  font-size: 1.5em;
  left: -2px;
  color: #999;
}
form[id^="views-exposed-form"] > .form--inline {
  display: flex;
  align-items: flex-end;
}
form[id^="views-exposed-form"] [id^="edit-actions"] {
  padding-top: 0;
  margin: 0 0 0.5rem;
}
form[id^="views-exposed-form"] [id^="edit-actions"] input {
  background-color: var(--ecit-light-grey)!important;
  border: 0;
  color: var(--ecit-white)!important;
}

.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;
  font-size: 0.8rem;
}
form:not(.vbo-view-form) .form-item {
  margin-bottom: 0.5em;
}
form.views-exposed-form .form-item {
  margin-right: 0.75em!important;
  display: flex;
  flex-direction: column;
}
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;
}

input.form-submit,
.button,
.ui-dialog .ui-dialog-buttonpane button {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 10px;
  background: var(--ecit-white) !important;
  color: var(--ecit-dark-grey) !important;
  text-shadow: none !important;
  border: 0;
  transition: background 0.1s linear;
  cursor: pointer;
  text-decoration: none!important;
  margin: 3px 5px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
  border: 1px solid var(--ecit-dark-grey);
}
input.form-submit:hover,
.button:hover,
.ui-dialog .ui-dialog-buttonpane button:hover {
  transition: background 0.1s linear;
  background: var(--ecit-dark-grey) !important;
  text-decoration: none!important;
  color: var(--ecit-white) !important;
}
.ui-dialog .ui-dialog-buttonpane button + button {
  margin-left: 10px;
}
.button.small,
.vbo-view-form .form-actions .button {
  font-size: 1em;
  padding: 5px 10px;
}


a[href*="/masquerade?"],
a[href*="/unmasquerade?"] {
  background: var(--ecit-red);
  color: var(--ecit-white);
  font-weight: bold;
  padding: 5px 10px;
  display: inline-block;
}

/** Menus **/

.ecit-user-menu svg {
  width: 30px;
  height: 27px;
}
.ecit-user-menu summary {
  display: inline-block;
  border-bottom: none;
  margin-bottom: 0;
  position: relative;
}
.ecit-user-menu summary {
  padding: 0.2em 0.3em;
}

.ecit-menu {
  position: relative;
}
.sms-menu {
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: var(--ecit-white);
  padding: 0 10px 10px 10px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  min-width: 300px;
  box-shadow: -2px 5px 5px 0px #0006;
}
.sms-header {
  font-size: 0.8em;
  padding-top: 0.5rem;
}
.sms-content {
  padding: 0.5em 0;
}
.counter {
  position: absolute;
  top: 1px;
  right: 0;
  background: var(--ecit-red);
  color: #fff;
  border-radius: 100px;
  padding: 2px 5px;
  font-weight: bold;
  font-size: 0.6rem;
}

/** Authenticator **/

.view-authenticator-keys-blocks .copy-link img {
  height: 28px;
  padding-top: 5px;
}
.authenticator-token {
  display: flex;
  gap: 0.5em;
  align-items: center;
  font-size: 1.8em;
}
