
/******************************************************************************/
/* Global Styles */
/******************************************************************************/

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: normal;
  font-display: swap;
  src: url('/fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
}


:root {
  --blue: #84b3e1;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100vh;

  color: #474747;
  font-size: 16px;
  font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Some weird feature where browsers adjust the size of h1, p, etc. when
  on a mobile browser. Setting this to none fixes the issue... */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

/* html, body {
  overflow: hidden;
} */

.app {
  width: 100%;
  min-height: 100vh;
}

/******************************************************************************/
/* header/footer */
/******************************************************************************/
header, footer {
  background-color: #D7E1EA;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width=%221512%22 height=%22246%22 viewBox=%220 0 1512 246%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E %3Cmask id=%22mask0_401_39%22 style=%22mask-type:alpha%22 maskUnits=%22userSpaceOnUse%22 x=%220%22 y=%220%22 width=%221512%22 height=%22246%22%3E %3Crect width=%221512%22 height=%22245.5%22 fill=%22%23D7E1EA%22/%3E %3C/mask%3E %3Cg mask=%22url(%23mask0_401_39)%22%3E %3Cpath d=%22M-115.19 -44L945 285H-238L-115.19 -44Z%22 fill=%22url(%23paint0_linear_401_39)%22/%3E %3Cpath d=%22M282.033 489.095L-5.81442 -583L625.786 417.285L282.033 489.095Z%22 fill=%22url(%23paint1_linear_401_39)%22/%3E %3C/g%3E %3Cdefs%3E %3ClinearGradient id=%22paint0_linear_401_39%22 x1=%22945%22 y1=%22120.5%22 x2=%22-238%22 y2=%22120.5%22 gradientUnits=%22userSpaceOnUse%22%3E %3Cstop stop-color=%22white%22 stop-opacity=%220%22/%3E %3Cstop offset=%221%22 stop-color=%22white%22 stop-opacity=%220.4%22/%3E %3C/linearGradient%3E %3ClinearGradient id=%22paint1_linear_401_39%22 x1=%22-144.907%22 y1=%22-495.174%22 x2=%22486.694%22 y2=%22505.111%22 gradientUnits=%22userSpaceOnUse%22%3E %3Cstop stop-color=%22white%22 stop-opacity=%220%22/%3E %3Cstop offset=%221%22 stop-color=%22white%22 stop-opacity=%220.4%22/%3E %3C/linearGradient%3E %3C/defs%3E %3C/svg%3E");
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
}

header {
  height: 160px;
  width: 100%;
  padding: 0 48px;

  transition: height 200ms, padding 200ms;
}
header .logo {
  position: absolute;
  top: 48px;
  left: 48px;
  height: 140px;
  width: 140px;
  z-index: 1;

  background: #5581A5;
  color: #fff;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;

  transition: height 200ms, top 200ms, left 200ms;
}

header .nav-link {
  flex: none;
  align-items: center;

  color: #474747;
  padding: 10px 24px;
  border-radius: 12px 12px 0 0;
  font-weight: bold;
}
header .nav-link.active {
  color: #474747;
  background: #fff;
}
header .profile {
  position: absolute;
  top: 48px;
  right: 48px;
  display: flex;
  justify-content: flex-end;

  transition: top 200ms, right 200ms;
  
  img {
    height: 48px;
    width: 48px;
    border-radius: 48px;
    cursor: pointer;
  }
}
header .hamburger {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;

  background: none;
  color: #474747;
  font-size: 32px;
  font-weight: bold;
}
@media only screen and (max-width: 748px) {
  header {
    height: 128px;
    padding: 0 24px;
  }
  header .logo {
    /* height: 48px; */
    top: 24px;
    left: 24px;
  }
  header .profile {
    top: 24px;
    right: 24px;
  }
}
@media only screen and (max-width: 716px) {
  header .logo {
    height: 48px;
  }
}
@media only screen and (max-width: 560px) {
  header .nav-link {
    display: none;
  }
  header .profile {
    display: none;
  }
  header button.hamburger {
    display: block;
  }
}

footer {
  height: 48px;
  width: 100%;
  padding: 0 48px;
  white-space: nowrap;
  overflow: hidden;

  transition: height 200ms, padding 200ms;
}
@media only screen and (max-width: 748px) {
  footer {
    height: 60px;
    padding: 0 40px;
  }
}

/******************************************************************************/
/* main */
/******************************************************************************/
main {
  flex: auto;
  width: 100%;
  padding: 72px 48px;
  /* overflow: auto; */

  transition: height 200ms, padding 200ms;
}
@media only screen and (max-width: 748px) {
  main {
    padding: 36px 24px;
  }
}

/******************************************************************************/
/* Account Menu */
/******************************************************************************/
.account {
  position: fixed;
  display: flex;
  gap: 24px;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 96px);
  width: calc(100% - 96px);
  margin: 48px;
  padding: 20px;
  overflow: hidden;
  z-index: 100;

  background-color: #fff;
  box-shadow: rgb(0, 0, 0, .2) 0px 6px 8px 1px;
  transition: opacity .3s ease-out;
}
@media only screen and (max-width: 748px) {
  .account {
    height: calc(100% - 48px);
    width: calc(100% - 48px);
    margin: 24px;
  }
}

/******************************************************************************/
/* Menu */
/******************************************************************************/
.menu {
  position: fixed;
  height: calc(100% - 160px);
  width: 100%;
  padding: 12px 0;
  margin-top: 160px;
  z-index: 50;
  overflow: auto;

  background-color: #fff;
  transition: opacity .3s ease-out;
}
.menu .nav-link {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;

  color: #474747;
  font-size: 24px;
  font-weight: bold;

  transition: background-color 250ms;
}
.menu .nav-link:hover {
  background-color: #ddd;
}
.menu .nav-link.active {
  color: #5581A5;
}

/******************************************************************************/
/* Other */
/******************************************************************************/
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

code {
  font-size: 12px;
  font-family: monaco, 'Courier New', monospace;
}

.mono {
  font-family: monaco, 'Courier New', monospace;
}

.no-color,
.no-color:active, .no-color:hover, .no-color:visited {
  color: transparent;
}

.text-align-right {
  text-align: right;
}

/******************************************************************************/
/* Images */
/******************************************************************************/
img:hover {
  filter: none !important;
}

/******************************************************************************/
/* Headings */
/******************************************************************************/
h1 {
  margin: 0;
  padding: 12px 12px 12px 24px;
  font-size: 24px;

  transition: padding 200ms;
}
@media only screen and (max-width: 748px) {
  h1 {
    padding: 12px 12px 12px 0px;
  }
}

/******************************************************************************/
/* Links */
/******************************************************************************/
a {
  color: var(--blue);
  text-decoration: none;
}

label.cta:has(+ input[type="file"]),
.cta,
.cta:visited {
  display: inline-block;
  /* vertical-align: baseline; */
  /* display: flex;
  align-items: center; */
  height: 42px;
  padding: 10px 18px;
  margin: 10px 0;
  color: #fff;
  background: #5581A5;
  border-radius: 12px;
  font-weight: normal;
  cursor: pointer;

  * {
    vertical-align: baseline;
  }
}

.secondary,
.secondary:visited {
  display: inline-block;
  /* vertical-align: baseline; */
  /* display: flex;
  align-items: center; */
  height: 42px;
  padding: 10px 18px;
  margin: 10px 0;
  color: #5581A5;
  background: transparent;
  border: 2px solid #5581A5;
  border-radius: 12px;
  font-weight: normal;
  cursor: pointer;

  * {
    vertical-align: baseline;
  }
}

/* a link or button following another link */
:is(.cta, .secondary):has(
  + :is(.cta, .secondary):not([style*="display: none;"])
) {
  margin-right: 16px;
}

/******************************************************************************/
/* Buttons */
/******************************************************************************/
button {
  border: none;
  font-size: 16px;
  font-family: inherit;
  text-wrap: nowrap;
  cursor: pointer;
}

button.p {
  padding: 0 16px;
}

button:disabled {
  cursor: not-allowed;
  background: #888;
}

/******************************************************************************/
/* Inputs */
/******************************************************************************/
input, select {

  padding: 0;
  margin: 0;
  border-radius: 0;

  border: none;
  background-color: transparent;
  color: #474747;
  accent-color: #5581A5;
  outline-color: #5581A5;
  font-size: 16px;
  font-family: inherit;
  /* -webkit-appearance: none; */
}

input[type="checkbox"],
input[type="radio"] {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}
input[type="number"],
input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
select {
  height: 56px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

input::placeholder {
  color: #ccc;
}

input:invalid,
textarea:invalid,
select:invalid {
  /* border: 1px solid #8f0000; */
  /* background: #8f0000; */
  /* text-decoration: dashed underline #bd2e2e; */
  text-decoration: dashed underline 2px #ffa303;
  text-underline-offset: 2px; 
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 1;
  color: #aaa;
  -webkit-text-fill-color: #aaa;
}

/******************************************************************************/
/* Tables */
/******************************************************************************/
/* table {
  border-collapse: collapse;
} */

.table table,
table.table {
  border-spacing: 0;
  margin: 24px 0;
}

.hover {
  transition: background-color 250ms;
}
.hover:hover {
  background-color: var(--blue);
}

.table tr {
  background-color: #ebebeb;
  transition: background-color 250ms;
}
.table tr:hover {
  background-color: #ddd;
}

.table :is(th, td) {
  height: 48px;
  padding: 8px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-align: left;
}
.table :is(th, td):first-of-type {
  padding-left: 32px;
}
.table :is(th, td):last-child {
  padding-right: 32px;
}
.table :is(th, td).clickable {
  cursor: pointer;
  transition: background-color 250ms;
}
.table :is(th, td).clickable:hover {
  background-color: rgba(85, 129, 165, .75);
}
.table th {
  height: 48px;
  background-color: #5581A5;
  color: #fff;
}

/* border between lines */
.table tr:not(:last-of-type) td {
  border-bottom: 1px solid #474747;
}
.table tr:not(:last-of-type) td:first-of-type {
  border-width: 0 0 1px 0;
  border-image-source: linear-gradient(to right, transparent 32px, #474747 32px);
  border-image-slice: 1;
}
.table tr:not(:last-of-type) td:last-child {
  border-width: 0 0 1px 0;
  border-image-source: linear-gradient(to left, transparent 32px, #474747 32px);
  border-image-slice: 1;
}
.table .table-footer-cell {
  border-width: 1px 0 0 0;
  border-image-source: linear-gradient(to right, 
    transparent 32px,
    #474747 32px,
    #474747 calc(100% - 32px),
    transparent calc(100% - 32px)
  );
  border-image-slice: 1;
}

/* rounded corners of table */
.table thead {
  tr:nth-child(2) {
    :is(th, td):first-of-type {
      border-top-left-radius: 16px;
    }
  }
  tr:nth-child(2) {
    :is(th, td):last-of-type {
      border-top-right-radius: 16px;
    }
  }
}
.table tbody {
  tr:last-of-type {
    :is(th, td):first-of-type {
      border-bottom-left-radius: 16px;
    }
  }
  tr:last-of-type {
    :is(th, td):last-of-type {
      border-bottom-right-radius: 16px;
    }
  }
}
/* .table tfoot {
  tr:last-of-type {
    :is(th, td):first-of-type {
      border-bottom-left-radius: 16px;
    }
  }
  tr:last-of-type {
    :is(th, td):last-of-type {
      border-bottom-right-radius: 16px;
    }
  }
} */

/* sticky headers */


/******************************************************************************/
/* Lists */
/******************************************************************************/
ul.comma {

  padding: 0;
  margin: 0;

  display: inline;

  list-style: none;
}
ul.comma li {
  display: inline
}
ul.comma li:not(:last-child):after {
  content: ', '
}

/******************************************************************************/
/* Tooltips */
/******************************************************************************/
:is(th, td):has(.tooltip) {
  overflow: visible;
}
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltiptext {
  position: absolute;
  z-index: 1;
  top: -5px;
  left: calc(100% + 6px);
  visibility: hidden;
  /* width: 120px; */
  width: max-content;
  padding: 5px;

  border-radius: 6px;
  /* background-color: #333; */
  background-color: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: normal;
}
.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  /* border-color: transparent #333 transparent transparent; */
  border-color: transparent var(--blue) transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/******************************************************************************/
/* Form */
/******************************************************************************/
.form {
  width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  background: #EBEBEB;

  transition: width 200ms;
}
.form-title {
  height: 48px;
  padding: 12px 32px;

  border-radius: 16px 16px 0 0;
  background-color: #5581A5;
  color: #fff;
  font-size: 24px;
  font-weight: bold;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-content {
  padding: 0 32px 32px 32px;

  h2 {
    width: 100%;
    padding: 18px 0;

    border-bottom: 1px solid #5581A5;
    color: #5581A5;
    font-size: 24px;
    font-weight: bold;
  }
  label {
    display: inline-block;
    margin: 18px 0;
    color: #376890;
    font-weight: bold;
  }
  textarea {
    height: 96px;
    padding: 12px;
    border-radius: 12px;

    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
  }
  .value-display {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
  }
}
.form-3-container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.form-text-container {
  width: 252px;

  transition: width 200ms;
}
.form-checkbox-container {
  width: 252px;
  display: flex;
  align-items: center;
  
  transition: width 200ms;
}
.form-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
@media only screen and (max-width: 1080px) {
  .form {
    width: 600px;
  }
  .form-3-container {
    gap: 24px;
  }
  .form-text-container {
    width: 160px;
  }
  .form-checkbox-container {
    width: 160px;
    display: flex;
    align-items: center;
  }
}
@media only screen and (max-width: 664px) {
  .form {
    width: 100%;
  }
}

/******************************************************************************/
/* Card */
/******************************************************************************/
.card-medium-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.card-medium {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
@media only screen and (max-width: 1080px) {
  .card-medium-container {
    gap: 24px;
  }
  .card-medium {
    width: 160px;
    height: 160px;
  }
}
@media only screen and (max-width: 664px) {
  .card-medium-container {
    justify-content: initial;
  }
}

/******************************************************************************/
/* Dialog */
/******************************************************************************/
dialog {
  border: none !important;
  border-radius: 16px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 200ms ease-out,
    overlay 200ms ease-out allow-discrete,
    display 200ms ease-out allow-discrete;
}
dialog[open] {
  opacity: 1;
}
@starting-style {
  dialog[open] {
    opacity: 0;
  }
}
body:has(dialog[open]) {
  overflow: hidden;
}

dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition:
    display 200ms allow-discrete,
    overlay 200ms allow-discrete,
    background-color 200ms;
}
dialog[open]::backdrop {
  background-color: rgb(0 0 0 / 25%);
}
@starting-style {
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}