* {
  margin: 0;
  padding: 0;
}

.body {
  margin-bottom: 32px !important;
}

/* .q-headline-wrapper {
  width: min(900px, 100% -3rem);
  margin-inline: auto;
  border: 1px solid red;
} */

/* ----------------- GRID ----------------- */

.container {
  .row {
    .col {
      padding: 0 0 0 0 !important;
    }
  }
}

.ml-auto {
  margin-left: auto;
}

/* ----------------- CARD ----------------- */

.card {
  background-color: rgb(244, 245, 247);
  box-shadow: 0 10px 13px -6px rgba(0, 0, 0, 0.2), 0 20px 31px 3px rgba(0, 0, 0, 0.14), 0 0.5rem 38px 7px rgba(0, 0, 0, 0.12) !important;
}

.card-content {
  padding: 48px !important;
}

.container-button {
  display: grid;
  align-items: center;
  gap: 1rem;

  button {
    margin: 0 auto1.5rem;
    background-color: rgb(135, 13, 135);
  }

  a {
    color: rgb(135, 13, 135);
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
  }
}

form .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ----------------- BUTTONS ----------------- */

button {
  background-color: rgb(135, 13, 135) !important;
  border-radius: 0.25rem !important;
  color: #fff !important;
}

button.btn-flat {
  background-color: transparent !important;
  color: rgb(135, 13, 135) !important;
}

button.q-icon-button {
  background-color: #f44336 !important;
  color: white !important;
  border: none !important;
  cursor: pointer;
}

.q-icon-button {
  color: rgb(135, 13, 135) !important;
  padding: 0.25rem;
}

.q-btn-abort {
  background-color: grey !important;
}

.q-btn-delete {
  background-color: #f44336 !important;
}

.q-button-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
  flex-wrap: wrap;

  a,
  button {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .q-button-wrapper {
    flex-direction: row;
    flex-wrap: nowrap;

    a,
    button {
      width: 10rem;
    }
  }
}

/* ----------------- PAGINATION ----------------- */

.pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: end;
  padding: 1rem 0;
}

li.disabled {
  color: rgb(194, 194, 194);
  cursor: default;
}
.pagination {
  li.active {
    background-color: rgb(135, 13, 135);
  }
}

/* ----------------- INPUTS ----------------- */

.input-field input[type="text"]:focus + label {
  color: rgb(135, 13, 135) !important;
}

input:focus {
  border-bottom: 1px solid rgb(135, 13, 135) !important;
  -webkit-box-shadow: 0 1px 0 0 rgb(135, 13, 135) !important;
  box-shadow: 0 1px 0 0 rgb(135, 13, 135) !important;
}

input:user-invalid {
  border-bottom: 1px solid red !important;
  -webkit-box-shadow: 0 1px 0 0 red !important;
  box-shadow: 0 1px 0 0 red !important;
}
input:out-of-range {
  border-bottom: 1px solid red !important;
  -webkit-box-shadow: 0 1px 0 0 red !important;
  box-shadow: 0 1px 0 0 red !important;
}

/* overwrite MaterializeCSS */
input.input-field {
  label:active {
    color: rgb(135, 13, 135);
  }
  label:focus {
    color: rgb(135, 13, 135);
  }
}

input.select-dropdown {
  color: rgb(135, 13, 135);
  .dropdown-content {
    color: rgb(135, 13, 135);
    li > span {
      color: rgb(135, 13, 135);
    }
  }
}

.dropdown-content,
.select-dropdown,
.select-wrapper input.select-dropdown:disabled {
  color: lightgray !important;
}

/* This is the style of our error messages */

.q-input-field-error {
  position: absolute;
  top: 3rem;
  left: 0;
  width: 100%;
  padding: 0.3em;
  padding-left: 0;

  font-size: 0.8rem;

  box-sizing: border-box;
  color: red;
}

.information {
  color: #8585e1;
}

.form-requiredInfo {
  color: lightgray;
  margin-bottom: 1rem;
}

/* overwrite radio button styles from MaterializeCSS */

[type="radio"]:checked + span:after {
  background-color: rgb(135, 13, 135);
  border: 2px solid rgb(135, 13, 135);
}

/* ----------------- DROPDOWN OVERWRITES ----------------- */

.q-role-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;

  .q-role-select {
    flex-grow: 1;
    width: 50%;
  }
}

/* Overwrite MaterializeCSS Dropdown */

.sort-symbol {
  font-size: 12px;
  margin-left: 5px;
}

.q-sort-dropdown {
  margin-bottom: 1.5rem;
}

.dropdown-content,
.select-dropdown,
.select-wrapper input.select-dropdown {
  color: #000 !important;
  /* color: rgb(163, 163, 163) !important; */
}

.dropdown-content li > a,
.dropdown-content li > span {
  color: #000 !important;
}

.dropdown-content li.selected > span {
  color: rgb(135, 13, 135) !important;
}

.dropdown-content li.disabled > span {
  color: rgb(163, 163, 163) !important;
}

/* ----------------- TYPOGRAPHY ----------------- */

.q-headline {
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
}

/* ----------------- NAVIGATION ----------------- */

.q-header-logo {
  display: grid;
  place-items: center;
  height: 4rem;
  padding-left: 1.5rem;
  margin-right: 32px;
}

.q-navigation-wrapper {
  background-color: rgb(244, 245, 247) !important;
  display: flex;
  justify-content: space-between;
  height: 64px;

  ul > li > a {
    color: black;
  }

  ul > li > a:hover {
    color: rgb(135, 13, 135);
  }

  a.q-active {
    color: rgb(135, 13, 135);
    font-weight: 700;
    border-bottom: 2px solid rgb(135, 13, 135);
    margin-bottom: -2px;
  }

  @media screen and (min-width: 993px) {
    justify-content: flex-start;
  }
}

.q-nav-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: aqua;
}

.q-nav-list li {
  margin: 0 15px;
}

.q-nav-list a {
  text-decoration: none;
  color: white;
  padding: 15px 20px;
  display: block;
}

.q-nav-list a:hover {
  background-color: #575757;
  border-radius: 0.25rem;
}

.q-sidenav {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;

  li > a.q-active {
    span {
      color: rgb(135, 13, 135);
      border-bottom: 2px solid rgb(135, 13, 135) !important;
    }
  }
}

/* ----------------- LAYOUT ----------------- */

.q-container {
  padding-top: 6rem;
}

.q-wrapper {
  margin-bottom: 4rem;
}

/* ----------------- NOTIFICATIONS ----------------- */

.errorMessage {
  display: none;
  background-color: rgba(255, 0, 0, 0.2);
  padding: 1rem;
  color: red;
  border: 1px solid red;
  border-radius: 0.3rem;
}

/* ----------------- TABLES ----------------- */

th,
td {
  /* overwrite MaterializeCSS */
  padding: 0.25rem 0.5rem;

  @media screen and (min-width: 993px) {
    padding: 0.4rem 0.75rem;
  }
}

.q-table-wrapper {
  width: 100% !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 0.3rem;
  background-color: rgb(244, 245, 247) !important;
}

.q-table {
  overflow: auto;
  width: 100% !important;
  font-size: 0.9rem !important;
  text-wrap: nowrap;

  th {
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .sort-symbol {
    font-size: 1rem;
    vertical-align: text-top;
    width: 1rem;
  }
}

.q-table-headline {
  display: none;
}

.q-table-cell-actions {
  text-wrap: nowrap;
}

@media (min-width: 426px) {
  .hide-on-med-and-up {
    display: none;
  }
}

@media (max-width: 425px) {
  .q-table-wrapper {
    border: none !important;
    background-color: #fff !important;
  }

  .q-table {
    text-wrap: wrap;
  }

  th {
    display: none;
  }

  tbody {
    tr {
      display: block;
      padding: 1.5rem 0 !important;
      border: 1px solid rgba(0, 0, 0, 0.12) !important;
      border-radius: 0.25rem;
      margin-bottom: 1rem;
      background-color: rgb(244, 245, 247) !important;
    }
  }

  td {
    display: grid;
    grid-template-columns: 15ch auto;
    padding: 0.5rem 1rem;
  }

  td::before {
    content: attr(data-cell) ": ";
    font-weight: 700;
    text-transform: capitalize;
  }
}

/* ----------------- FOOTER ----------------- */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  display: flex;
  flex-direction: column;
  background: rgb(244, 245, 247);
  margin-top: auto;
  padding: 0.5rem 1rem;
  gap: 1rem;
  font-size: 0.875rem;
  z-index: 2;

  div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
  }

  a {
    color: inherit;
    cursor: pointer !important;
  }
}

@media screen and (min-width: 768px) {
  footer {
    flex-direction: row;
    gap: 3;
    z-index: 2;

    div {
      display: flex;
      flex-direction: row;
      gap: 3rem;
      flex-grow: 1;
    }
  }
}

/* ----------------- COOKIE NOTICE ----------------- */

.q-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

body.no-scroll {
  overflow: hidden;
}

#q-cookie-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 90%;
  max-height: 90%;
  overflow: scroll;
  background-color: rgb(244, 245, 247);
  padding: 2.25rem;
  border-radius: 0.25rem;
  box-shadow: 0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)),
    0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
}

.q-cookie-notice__headline {
  font-size: 1.5rem;
  font-weight: 400;
  word-break: normal;
  word-wrap: break-word;
  margin: 0;
}

.q-cookie-notice__copy {
  font-size: inherit;
  letter-spacing: 0.03125em;
  line-height: inherit;
  padding-left: 0.5rem;
}

.q-cookie-notice__copy-list {
  padding-left: 24px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  display: block;
  list-style-type: disc !important;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 2.5rem;
  unicode-bidi: isolate;

  li {
    display: list-item;
    list-style-type: disc !important;
  }
}

@media screen and (min-width: 768px) {
  #q-cookie-notice {
    max-width: 750px;
  }

  .q-cookie-notice__headline {
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
  }
}

/* ----------------- MODAL ----------------- */

.q-modal {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.q-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-height: 90%;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1.5rem;

  p {
    width: 100%;
  }
}

.q-modal__content-error {
  display: none;
  padding: 0.25rem;
  border: 1px solid red;
  border-radius: 4px;
  background-color: rgba(255, 67, 54, 30%);
  color: red;
  overflow-x: auto;
}

#q-modal__btn-download {
  width: auto;
}

@media screen and (min-width: 768px) {
  .q-modal__content {
    width: 30rem;
  }
}

/* ----------------- Error Page ----------------- */

.q-error-page--centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.q-error-page-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
