:root {
  /* --- COLOURS --- */
  --primarylighter: #dbf5e3;
  --primarylight: #8cdfa5;
  --primary: #6fd78f; /* Moss */
  --primarydark: #4fa86a;
  --primarydarker: #3c8052;
  --primarygray: #b8c7b7;
  --primarygraydarker: #a9b8a8;
  --secondary: #0a2927; /* Forest */
  --secondaryDark: #061615;
  --secondaryVariation: #0b2927; /* Off Forest */
  --secondaryLight: #194e4b;
  --secondaryLighter: #cdd6d5;
  --tertiary: #98c6a6;
  --tertiarylight: #ecfcf1;
  --tertiarylighter: #f1f9f3;
  --tertiarydark: #859a8c;

  --white: #ffffff;
  --black: #111111;
  --blacker: #060606;

  --gray: #999999;
  --modgray: #cacaca;
  --slightgray: #e8e8e8;
  --lightgray: #efefef;
  --lightergray: #f7f7f7;
  --ol: #252525; /* On Light */
  --od: #efefef; /* On Dark */

  --penta: #8c8a93; /*Taupe Gray */
  --alert: #a20021; /* Gentle Red */
  --alertLight: #d98697;
  --alertLighter: #e9cad0;
  --alertSecondary: #ff5a57;
  --alertSecondaryLighter: #e96c6a;
  --disabled: #666;
  --line: #787878;
  --error-bg: #dc9eaa;
  --error-border: #a20021;
  --success: #92dd2b;
  --success-bg: #d5f2ac;
  --success-border: #92dd2b;
  --highlight: #e7eaec;
  --positiveNote: #d5f2ac;
  --negativeNote: #dc9eaa;
  --editable: #93d2ff;
  --editableBackground: #ecf4f9;
  --blue: #2f99db;

  --cellBackground: var(--tertiarylight);
  --cellBorder: var(--tertiary);

  /* --- SIZINGS --- */
  --std-border-radius: 5px;

  /* --- FONTS --- */
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Poppins", sans-serif;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  height: 100%;
  text-align: left;
}
html,
body,
header,
footer,
p,
div,
img,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ul,
ol,
dl,
dd,
dt,
form,
table,
td,
tr,
th {
  border-collapse: separate;
  border-spacing: 0px;
}
input,
select,
textarea,
table,
body,
button {
  color: var(--ol);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: normal;
}
input[type="checkbox"] {
  vertical-align: middle;
}
textarea {
  resize: vertical;
}
input:not([type="checkbox"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  background: var(--lightergray);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 10px;
  margin: 2px 0;
  width: 100%;
}
.editingActive input:not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.editingActive select,
.editingActive textarea {
  background: var(--white);
}
input:not([type="checkbox"]):not([type="submit"]):not([type="button"]):focus-visible,
select:focus-visible,
textarea:focus-visible,
.editingActive input:not([type="checkbox"]):not([type="submit"]):not([type="button"]):focus-visible,
.editingActive select:focus-visible,
.editingActive textarea:focus-visible {
  outline: none;
  border: 1px solid var(--primary);
}

option:checked {
  color: var(--primarydark);
}
option.negative {
  color: var(--alert);
  font-style: italic;
}

button,
input[type="submit"],
input[type="button"] {
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.1;
}
h1,
h2,
h3 {
  text-transform: capitalize;
  font-family: var(--font-heading);
}
h1 {
  font-size: 1.4rem;
  color: var(--primarydarker);
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
  color: var(--ol);
}
h3 {
  font-size: 1.2rem;
}
h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-decoration: underline;
}
h5 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-style: italic;
}
ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
td,
th {
  vertical-align: top;
}
a {
  text-decoration: none;
  color: var(--primarydark);
}
a:hover {
  text-decoration: underline;
}
p {
  padding-bottom: 10px;
}

.aRight {
  text-align: right !important;
}
.aCenter {
  text-align: center !important;
}
.aLeft {
  text-align: left !important;
}

.printOnly {
  display: none;
  visibility: hidden;
}
.cmsAccessNote {
  color: var(--alertLight);
  font-weight: bold;
}

/* --- Datatables --- */
.dataTables_filter {
  width: max-content;
  gap: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.dataTables_filter > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Slider Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 29px;
  margin-left: 5px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--modgray);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 29px;
}
.switch_slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: var(--white);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}
.hidden {
  display: none !important;
  visibility: hidden !important;
  max-height: 0px;
}
input:checked + .switch_slider {
  background-color: var(--primary);
}

input:checked + .switch_slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}
.listBulletpoints {
  padding: 10px 0;
}
.listBulletpoints li {
  list-style-type: circle;
  list-style-position: outside;
  margin-left: 30px;
  padding: 5px;
}
button.seriousButton {
  background: none;
  padding: 0;
  margin: 0;
  text-transform: none;
  text-align: left;
  color: var(--alert);
}

/* --- LOADING --- */

.loading_holder {
  height: 50%;
  max-height: 100vh;
  min-height: 300px;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translate(0, -50%);
  text-align: center;
}
.loading_holder img {
  width: 60px;
}

/* --- CONFIRMATION BOX --- */

#confirmationBox {
  display: grid;
  align-items: center;
}
#confirmationBox-content {
  padding-bottom: 0 !important;
}
div[role="dialog"].ui-widget.ui-widget-content,
div[role="dialog"].ui-dialog {
  padding: 20px;
  border-radius: 1rem;
  overflow: hidden;
  min-width: 600px;
}

div[role="dialog"] button[title="Close"]:active,
div[role="dialog"] button[title="Close"]:focus,
div[role="dialog"] button[title="Close"] {
    position: absolute;
    right: 20px;
    top: 0px;
    width: 20px;
    margin: -10px 0 0 0;
    padding: 1px;
    height: 20px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 22px;
    font-family: "Courier New", Courier, monospace;
}
div[role="dialog"] button.ui-dialog-titlebar-close,
div[role="dialog"] .ui-dialog-buttonpane {
  border: none;
  background: unset;
}
div[role="dialog"] .ui-widget-header,
div[role="dialog"] .ui-dialog-titlebar {
  border: none;
  color: var(--ol);
  background: unset;
  font-size: 1.3rem;
}

/* ---- Define Fade In ---- */

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
