:root {
  --secondary-color: #011e4a;
  --secondary-color-dimmed: #0a2e5a;
  --main-color: #d10000;
  --main-color-dimmed: #660000;
  --gray: #f0f2f4;
  --darkgray: #4a4a4a;
  --tag-color: #a4a6a7;
  --alt-white: #f9fafb;

  --white: #fff;
  --black: #000;

  --selection-bg: #308dfd;
  --selection-color: var(--white);
}

* {
  -webkit-hyphens: auto;
  hyphens: auto;
}

.divi-header {
  background-color: #b8b8b8;
  text-transform: uppercase;
  font-weight: bold;
  padding-left: 5px;
  padding-right: 5px;
}

.divi-content input[type="text"] {
  background-color: #fff;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom-width: 2px;
}

.divi-content textarea {
  resize: vertical; /* Make the textarea resizable only vertically */
  max-height: 250px; /* Set the maximum height to 200 pixels */
  background-color: #fff;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom-width: 2px;
}

.vitalparam {
  max-width: 50px;
}

.btn-check:disabled + .btn,
.btn-check[disabled] + .btn {
  opacity: 1 !important;
}

.nt-input {
  font-family: "Courier New", Courier, monospace;
}

.form-control {
  padding: 0.375rem 0.5rem !important;
}

body #qm-quick-menu {
  position: fixed;
  bottom: 30%;
  right: 16px;
  border-radius: 0;
  font-size: 1rem;
  padding: 5px 15px;
}

button#qm-quick-menu {
  background: var(--main-color);
  color: var(--white);
  border: none;
  transform: none;
  right: 32px;
  bottom: 32px;

  &:hover {
    background: var(--secondary-color);
  }
}

body #qm-log-menu {
  position: fixed;
  bottom: 30%;
  right: 16px;
  border-radius: 0;
  font-size: 1rem;
  padding: 5px 15px;
}

button#qm-log-menu {
  background: var(--main-color);
  color: var(--white);
  border: none;
  transform: none;
  right: 32px;
  bottom: 84px;

  &:hover {
    background: var(--secondary-color);
  }
}

// .form-control,
// .form-select {
//   font-family: Inconsolata !important;
// }

.diviRow1,
.diviRow2 {
  min-height: 300px;
}

.fieldDescription {
  display: flex;
  align-items: center;
}

#edivi__container,
body {
  background-color: #191919 !important;
  color: #fff;
}

#edivi__container .edivi__box .form-check-input {
  --bs-form-check-bg: transparent;
  --bs-form-check-bg-image: none;
}

#edivi__container .edivi__box .form-check-input:checked {
  background-color: #fff;
  border-color: #fff;
}

#edivi__container .modal,
#edivi__container .modal input.form-control {
  color: #000 !important;
}

#edivi__container .edivi__box {
  background: #333333;
  margin: 10px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

#edivi__container .edivi__box .edivi__description {
  color: #a2a2a2;
  padding: 0 0.5rem !important;
}

#edivi__container .edivi__overview-container .edivi__box textarea.form-control {
  border: 1px solid #a2a2a2 !important;
}

#edivi__container .edivi__box input.form-control,
#edivi__container .edivi__box select.form-select,
#edivi__container .edivi__box textarea.form-control {
  background: transparent;
  border-radius: 0;
  color: #fff;
  border: 0;
  font-size: 1.2rem;
  //border-bottom: 1px solid #a2a2a2;
  //border-left: 1px solid #a2a2a2;
  //border-right: 1px solid #a2a2a2;

  &:focus {
    box-shadow: 0 0 0 1px #5783cf !important;
  }

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }
}

#edivi__container .edivi__medikamente input.form-control,
#edivi__container .edivi__medikamente select.form-select,
#edivi__container .edivi__medikamente textarea.form-control {
  background: transparent;
  border-radius: 0;
  color: #fff;
  border: 0;
  font-size: 1.2rem;
  //border-bottom: 1px solid #a2a2a2;
  //border-left: 1px solid #a2a2a2;
  //border-right: 1px solid #a2a2a2;

  &:focus {
    box-shadow: 0 0 0 1px #5783cf !important;
  }

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }
}

#medis-select,
#medis-time,
#medis-unit,
#medis-admission,
#medis-concentration {
  font-size: 1.75rem !important;
  border-radius: 0;
  color: #fff;
  border: 0;

  &:focus {
    box-shadow: 0 0 0 1px #5783cf !important;
  }

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }
}

.medikament-item {
  transition: all 0.2s ease;
}

#medis-list {
  overflow-y: auto;
  max-height: 60vh;
}

#medis-list::-webkit-scrollbar {
  width: 8px;
}

#medis-list::-webkit-scrollbar-track {
  background: #222;
}

#medis-list::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

#medis-list::-webkit-scrollbar-thumb:hover {
  background: #888;
}

#medis-list {
  font-size: 1.5rem;
}

#edivi__container .edivi__box select.form-select {
  padding: 0.375rem 0rem 0.375rem 0.75rem;
}

#edivi__container .edivi__box select.form-select > option {
  background-color: #191919;
  color: #fff;
  padding: 10px;
  margin: 0;
}

#edivi__container .edivi__box input.form-control::placeholder,
#edivi__container .edivi__box textarea.form-control::placeholder {
  color: #a2a2a2;
}

#edivi__container .edivi__box input {
  transition: border-left 0.3s ease-in-out;
}

#edivi__container .edivi__box input.edivi__input-check,
#edivi__container .edivi__box select.edivi__input-check {
  border-left: 3px solid red;
}

#edivi__container .edivi__box input.edivi__input-checked,
#edivi__container .edivi__box select.edivi__input-checked {
  border-left: 3px solid #038846;
}

#edivi__container .edivi__box .edivi__verletzungen-col {
  position: relative;
}

#edivi__container .edivi__box .edivi__verletzungen-col::after {
  content: "";
  height: 8px;
  width: 8px;
  background: transparent;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
}

#edivi__container
  .edivi__box
  .edivi__verletzungen-col.edivi__verletzungen-red::after {
  background: red;
}

#edivi__container
  .edivi__box
  .edivi__verletzungen-col.edivi__verletzungen-yellow::after {
  background: yellow;
}

#edivi__container
  .edivi__box
  .edivi__verletzungen-col.edivi__verletzungen-green::after {
  background: green;
}

#edivi__container .btn {
  border-radius: 0 !important;
}

.edivi__box.edivi__log-comment {
  background: #333333;
  color: #a2a2a2;
  padding: 12px;
  margin: 0;
  font-size: 0.8rem;

  & i {
    padding: 6px 9px;
    border-radius: 2px;
    background: #a2a2a2;
    color: #333333;
    opacity: 0.6;
  }
}

.edivi__notice {
  background: var(--main-color);
  color: var(--white);
  padding: 12px;
  margin: 0;
  font-size: 0.8rem;
}

.edivi__notice.edivi__notice-freigeber i {
  padding: 6px;
  border-radius: 50%;
  background: var(--white);
  color: var(--main-color);
}

#edivi__container .edivi__box .edivi__zugang-container {
  position: relative;
}

#edivi__container .edivi__box .edivi__zugang-container::after {
  content: "";
  height: 8px;
  width: 8px;
  background: transparent;
  position: absolute;
  right: 20%;
  bottom: 5px;
  border-radius: 0;
}

#edivi__container .edivi__box .edivi__zugang-container {
  &.edivi__zugang-opt10::after,
  &.edivi__zugang-opt9::after {
    background: yellow;
  }
  &.edivi__zugang-opt1::after,
  &.edivi__zugang-opt8::after {
    background: blue;
  }
  &.edivi__zugang-opt2::after {
    background: pink;
  }
  &.edivi__zugang-opt3::after {
    background: green;
  }
  &.edivi__zugang-opt4::after {
    background: white;
  }
  &.edivi__zugang-opt5::after {
    background: gray;
  }
  &.edivi__zugang-opt6::after {
    background: orange;
  }
  &.edivi__zugang-opt7::after {
    background: red;
  }
}

#edivi__nidanav {
  counter-reset: nidanav;
  padding: 0 !important;
  > a {
    counter-increment: nidanav;
    position: relative;
    word-wrap: break-word;
    color: var(--white);
    background-color: var(--secondary-color);
    border-radius: 0;
    padding: 25px 4px;
    padding-left: 35px;
    text-decoration: none;
    font-weight: 600;
    text-align: start;
    margin: 0;
    border: 1px solid #191919;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #333333;
    z-index: 1;
    overflow: hidden;
    // &:last-child {
    //   padding-left: 8px;
    // }
    &:hover {
      background-color: #5f5f5f;
      color: var(--white);
    }
    &.active {
      background-color: #5f5f5f;
      color: var(--white);
      border-right: 2px solid #5783cf;
    }
    &:before {
      content: "";
      display: block;
      width: 2px;
      height: 20px;
      background-color: transparent;
      position: absolute;
      top: 0;
      left: 0;
      transition: width 0.3s ease;
      z-index: 2;
    }
    &.edivi__nidanav-unfilled:before {
      background-color: #d91425;
      top: 8px;
    }
    &.edivi__nidanav-partfilled:before {
      background-color: #f7ec5d;
      top: 8px;
    }
    &.edivi__nidanav-filled:before {
      background-color: #55b530;
      top: 28px;
    }
    &.edivi__nidanav-nocheck:before {
      display: none;
    }
    &:after {
      content: counter(nidanav);
      position: absolute;
      left: 7px;
      top: 50%;
      font-size: 2.5rem;
      font-weight: 300;
      transform: translateY(-50%);
      color: var(--white);
      z-index: 0;
    }

    &.edivi__nidanav-nonumber {
      counter-increment: none;
      padding-left: 8px;
      &:after {
        display: none;
      }
    }

    span {
      position: relative;
      z-index: 1;
    }
  }
}

[class*="edivi__interactbutton"] {
  padding: 0 !important;
  > a,
  > label {
    position: relative;
    word-wrap: break-word;
    color: var(--white);
    background-color: var(--secondary-color);
    border-radius: 0;
    padding: 25px 30px;
    padding-left: 14px;
    text-decoration: none;
    font-weight: 600;
    text-align: start;
    margin: 0;
    border: 1px solid #191919;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #333333;
    z-index: 1;
    overflow: hidden;
    &:hover {
      background-color: #5f5f5f;
      color: var(--white);
      cursor: pointer;
    }
    &.active {
      background-color: #5f5f5f;
      color: var(--white);
    }
    &:before {
      content: "";
      display: block;
      width: 2px;
      height: 20px;
      background-color: transparent;
      position: absolute;
      top: 0;
      left: 0;
      transition: width 0.3s ease;
      z-index: 2;
    }
    &.edivi__validation-red:before {
      background-color: #d91425;
      top: 8px;
    }
    &.edivi__validation-yellow:before {
      background-color: #f7ec5d;
      top: 8px;
    }
    &.edivi__validation-green:before {
      background-color: #55b530;
      top: 28px;
    }
    &.edivi__validation-ignore:before {
      display: none;
    }
    span {
      position: relative;
      z-index: 1;
    }
  }

  .btn-check {
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none !important;

    &:checked + label {
      background-color: #5f5f5f;
      color: var(--white);
    }

    &:focus + label {
      box-shadow: 0 0 0 0.2rem rgba(87, 131, 207, 0.25);
    }
  }
}

[class*="edivi__interactbutton"] {
  > label.edivi__zugang-24G:after,
  .btn-check:checked + label.edivi__zugang-24G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(255, 255, 0);
    right: 10px;
  }

  > label.edivi__zugang-22G:after,
  .btn-check:checked + label.edivi__zugang-22G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(0, 0, 255);
    right: 10px;
  }

  > label.edivi__zugang-20G:after,
  .btn-check:checked + label.edivi__zugang-20G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(255, 192, 203);
    right: 10px;
  }

  > label.edivi__zugang-18G:after,
  .btn-check:checked + label.edivi__zugang-18G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(0, 128, 0);
    right: 10px;
  }

  > label.edivi__zugang-18G_kurz:after,
  .btn-check:checked + label.edivi__zugang-18G_kurz:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(0, 128, 0);
    box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px rgb(0, 128, 0);
    right: 10px;
  }

  > label.edivi__zugang-17G:after,
  .btn-check:checked + label.edivi__zugang-17G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    right: 10px;
  }

  > label.edivi__zugang-16G:after,
  .btn-check:checked + label.edivi__zugang-16G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(128, 128, 128);
    right: 10px;
  }

  > label.edivi__zugang-14G:after,
  .btn-check:checked + label.edivi__zugang-14G:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    background: rgb(255, 165, 0);
    right: 10px;
  }
}

[class*="edivi__interactbutton"] > label.edivi__interactbutton-text {
  background: transparent;
  margin: 25px 4px;
  margin-left: 14px;
  text-align: center;

  &:hover {
    background: transparent;
    color: var(--white);
    cursor: default;
  }

  &:after {
    content: "";
  }
}

[class*="edivi__interactbutton"] > label:after {
  content: "\f04d";
  font-family: "Line Awesome Free";
  position: absolute;
  right: 7px;
  top: 50%;
  font-size: 1.5rem;
  font-weight: 900;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 0;
}

[class*="edivi__interactbutton"] .btn-check:checked + label:after {
  content: "\f14a";
}

@media (max-width: 1001px) {
  [class*="edivi__interactbutton"] > *:after {
    display: none;
  }

  [class*="edivi__interactbutton"] > a,
  [class*="edivi__interactbutton"] > label {
    padding-right: 4px;
  }
}

.edivi__interactbutton-more > a:after {
  content: "\f105";
  font-family: "Line Awesome Free";
  position: absolute;
  right: 7px;
  top: 50%;
  font-size: 1.5rem;
  font-weight: 900;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 0;
}

.edivi__box h5 {
  font-size: 1.4rem;
}

#edivi__container .edivi__box .edivi__group-check {
  border-left: 3px solid #d91425;
}

#edivi__container .edivi__box .edivi__group-partchecked {
  border-left: 3px solid #f7ec5d;
}

#edivi__container .edivi__box .edivi__group-checked {
  border-left: 3px solid #038846;
}

@media (max-width: 1700px) {
  .edivi__box > .col > .row > [class^="col"],
  .edivi__box > .row > [class^="col"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

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

  #edivi__content {
    flex: 1;
  }

  .edivi__freigabe-buttons {
    position: relative !important;
    margin-top: auto !important;
  }
}

@media (max-width: 1506px) {
  #edivi__nidanav.col-1 {
    min-width: 132px;
  }
}

@media (max-width: 1155px) {
  #edivi__content .row > .col,
  #edivi__content .row > .col-8,
  #edivi__login #edivi__content .row > .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

#edivi__content .edivi__overview-container {
  margin: 10px 5px;

  span.fw-bold {
    padding-right: 8px;
  }
}

#edivi__topbar {
  border-bottom: 2px solid var(--main-color);
  color: var(--white);

  span#current-time {
    font-size: 1.6rem;
    line-height: 0.8;
  }

  a#home {
    border-right: 2px solid #424242;
  }

  a#qma,
  a#qml {
    border-left: 2px solid #424242;
  }

  img {
    padding-left: 15px;
    border-left: 2px solid #424242;
  }
}

#edivi__topbar a.edivi__iconlink {
  display: inline-block;
  text-align: center;
  font-size: 38px;
  padding: 0 10px;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

#edivi__topbar a.edivi__iconlink small {
  display: block;
  font-size: 0.6rem;
  margin-top: 2px;
  line-height: 1;
}

body#edivi__print {
  background-color: var(--white) !important;
  font-size: 0.7rem;
}

#edivi__print .col > * {
  padding: 0 3px;
}

#edivi__print input[type="text"],
#edivi__print input[type="date"],
#edivi__print select {
  border: 1px solid var(--black);
  border-top: 0;
  border-right: 0;
  color: var(--black);
  margin-bottom: 2px;

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }
}

#edivi__print textarea {
  border: 0;
  color: var(--black);
  margin-bottom: 2px;
  resize: none;

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }
}

#edivi__print select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#edivi__print input,
#edivi__print textarea,
#edivi__print select {
  font-size: 1rem;
  background: transparent;
}

#edivi__print input[type="radio"] {
  accent-color: var(--black);
}

@media print {
  body#edivi__print {
    padding: 10mm;
    font-size: 8pt;
  }

  #edivi__print h6,
  #edivi__print p {
    font-size: 8pt !important;
  }

  #edivi__print h5 {
    font-size: 9pt !important;
  }

  #edivi__print input,
  #edivi__print textarea,
  #edivi__print select {
    font-size: 9pt !important;
    font-weight: 600;
  }

  #edivi__print .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  #edivi__print .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  #edivi__print .col {
    flex: 1 !important;
  }

  #edivi__print label {
    opacity: 0.6;
    z-index: -1;
    font-size: 6pt !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    margin: 0;
  }
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 0;
  min-width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  animation: fadeInOut 5s forwards;
}

.toast.success {
  border: 2px solid #28a745;
}

.toast.error {
  border: 2px solid #dc3545;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

a#abschluss__btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.4rem;
  padding: 15px 30px;
  background-color: var(--main-color);
  color: var(--white);
  border: 2px solid #191919;
  text-decoration: none;

  &:hover {
    background-color: var(--main-color-dimmed);
  }
}

body[data-page="freigabe"] h5 {
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

body[data-page="freigabe"] {
  overflow-x: hidden;
}

.edivi__freigabe table {
  width: 100%;
  background-color: #333333;
  font-size: 1.2rem;

  td {
    padding: 0.2rem;
    border: 1px solid #595959;
  }

  td.edivi__checks-text {
    height: 300px;
    overflow-y: auto;
    display: flex;
    justify-content: start;
    align-items: start;
  }
}

.edivi__freigabe-buttons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  .col {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 !important;
  }

  button[type="submit"] {
    font-size: 1.4rem;
    padding: 22px 30px;
    background-color: var(--main-color);
    color: var(--white);
    text-decoration: none;
    width: 100%;
    border: 2px solid #191919;

    &:hover {
      background-color: var(--main-color-dimmed);
    }
  }

  a {
    font-size: 1.4rem;
    padding: 22px 30px;
    background-color: var(--white);
    color: var(--black);
    text-decoration: none;
    width: 100%;
    border: 2px solid #191919;

    &#final {
      background-color: var(--main-color);
      color: var(--white);

      &:hover {
        background-color: var(--main-color-dimmed);
      }
    }
  }
}

.edivi__login-buttons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 1.4rem;
  background-color: #333333;

  .col,
  .col-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 !important;
  }

  a {
    font-size: 1.4rem;
    padding: 22px 30px;
    text-decoration: none;
    width: 100%;
    border: 2px solid #191919;
    background-color: var(--main-color);
    color: var(--white);

    &:hover {
      background-color: var(--main-color-dimmed);
    }
  }
}

.edivi__header-overview {
  font-size: 0.9rem;
}

.edivi__nidabutton {
  background-color: #474747;
  color: #fff;
  border: 0;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 0;
  text-decoration: none;

  &:hover {
    background-color: #5f5f5f;
  }

  &-primary {
    background-color: var(--main-color);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 0;
    text-decoration: none;

    &:hover {
      background-color: var(--main-color-dimmed);
    }
  }

  &-secondary {
    background-color: #fff;
    color: #000;
    border: 0;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 0;
    text-decoration: none;

    &:hover {
      background-color: #f0f0f0;
    }
  }
}

#edivi__login input.form-control,
#edivi__login select.form-select {
  background-color: #333333;
  border-radius: 0;
  color: #fff;
  border: 0;
  font-size: 1.2rem;

  &:focus {
    box-shadow: 0 0 0 1px #5783cf !important;
  }

  &[readonly],
  &[disabled] {
    box-shadow: none !important;
    caret-color: transparent;
    user-select: none;
    pointer-events: none;
    cursor: default;
  }

  & > option {
    background-color: #191919;
    color: #fff;
    padding: 10px;
    margin: 0;
  }
}

#edivi__login input.form-control::placeholder {
  color: #a2a2a2;
}

.edivi__einsatz {
  padding: 10px 15px;
  background-color: #595959;
  color: #fff;
  border-radius: 0;
  border: 1px solid #333333;

  span.edivi__einsatz-cat {
    color: #fa0002;
    padding: 0 5px;
    outline: 2px solid #fa0002;
    border-radius: 0;
    font-size: 0.6rem;
    vertical-align: super;
    margin-left: 2px;
  }

  &-type span {
    color: #595959;
    padding: 0 14px;
    border-radius: 4px;
    background-color: #333333;
  }

  &-link {
    text-decoration: none;
  }

  &-type,
  &-enr,
  &-name {
    display: flex;
    align-items: center;
    justify-content: start;
    //flex-direction: column;
  }

  &-type {
    font-size: 2rem;
    font-weight: bold;
  }

  &-enr {
    align-items: start;
    flex-direction: column;
  }

  &-enr span {
    flex: 1 100%;
    font-size: 1.2rem;
    font-weight: bold;
  }

  &-name {
    align-items: start;
    flex-direction: column;
  }

  &-name span,
  &-freigeber span {
    opacity: 0.5;
  }
}

body#edivi__arrivalboard {
  background-color: #191919 !important;
  color: #fff;

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 1.2rem;

    th,
    td {
      padding: 10px;
      text-align: left;
      border-bottom: 1px solid #666666;

      &.edivi__arrivalboard-time {
        text-align: center;
        > span {
          font-size: 2rem;
        }
      }

      &.edivi__arrivalboard-gender {
        text-align: center;

        i.la-mars {
          color: #308dfd;
        }

        i.la-venus {
          color: #ff69b4;
        }
      }

      &.edivi__arrivalboard-text {
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
      }
    }

    tr.edivi__arrivalboard-prio-0 {
      border-left: 12px solid green;
    }

    tr.edivi__arrivalboard-prio-1 {
      border-left: 12px solid yellow;
    }

    tr.edivi__arrivalboard-prio-2 {
      border-left: 12px solid red;
    }

    th {
      color: #666666;
      font-weight: normal;
    }
  }
}

#edivi__login .accordion {
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-bg: transparent;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: #fff;
  --bs-accordion-color: #fff;
  --bs-accordion-border-color: #5783cf;
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");

  .accordion-button {
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0
      var(--bs-accordion-border-color) !important;
  }

  .accordion-item {
    border: 0 !important;
  }

  .accordion-button:focus {
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0
      var(--bs-accordion-border-color) !important;
  }
}

.vehicle-info-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
}

.table-dark-custom {
  --bs-table-bg: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;

  & th {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
  }

  & td {
    background-color: #2a2a2a !important;
    color: #fff !important;
  }
}

.category-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  margin-bottom: 15px;
}

.tile-item {
  background: #252525;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 4px 0;
  border-left: 3px solid #ffaf2f;
}

.badge-vehicle-type {
  font-size: 0.8em;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #757575 #131313;
}

/* WebKit Browser */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #131313;
}

::-webkit-scrollbar-thumb {
  background: #595959;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #757575;
}

body[data-page="verlauf"] {
  .col.position-relative {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px;
  }

  .input-group-text {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
  }

  .edivi__vitalparam-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    &::before {
      position: absolute;
      content: attr(data-before);
      color: #fff;
      left: 25px;
      top: 5px;
      font-size: 1.4rem;
      z-index: 150;
    }

    &::after {
      position: absolute;
      content: attr(data-after);
      color: #fff;
      left: 25px;
      bottom: 5px;
      font-size: 1.4rem;
      z-index: 150;
    }
  }

  .edivi__vitalparam-box[data-before="NIBP/RR"] {
    flex-direction: row;
  }

  .edivi__vitalparam-box[data-before="NIBP/RR"] input {
    flex: 1;
  }

  .edivi_vitalparam-spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    //font-weight: bold;
    min-width: 30px;
    background: transparent;
    border-top: 3px solid #333333;
    border-bottom: 3px solid #333333;
    border-left: 0;
    border-right: 0;
    pointer-events: none;
    z-index: 1;
    height: 100%;
  }

  .edivi__vitalparam-box[data-before="NIBP/RR"] input {
    flex: 1;
    z-index: 2;
  }

  textarea.form-control.edivi__vitalparam {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    --bs-border-width: 3px;
    --bs-border-color: #333333;
    border-radius: 0 !important;
    font-size: 1.5rem;
    text-align: start;
    --bs-body-color: #038c4a;

    &::placeholder {
      color: #5f5f5f !important;
    }

    &:active,
    &:focus {
      background: #333333 !important;
    }
  }

  input[type="text"].form-control.edivi__vitalparam,
  input[type="number"].form-control.edivi__vitalparam {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    --bs-body-bg: transparent;
    --bs-border-width: 3px;
    --bs-border-color: #333333;
    border-radius: 0 !important;
    font-size: 4rem;
    text-align: center;
    font-weight: 600;
    --bs-body-color: #fff;

    &::placeholder {
      color: #808080 !important;
    }

    &:active,
    &:focus {
      background: #333333 !important;
    }

    &.edivi__vitalparam-required {
      border-color: rgba(220, 53, 69, 0.8) !important;
      background-color: rgba(220, 53, 69, 0.3) !important;
    }
  }

  input[type="text"].form-control.edivi__vitalparam-shared,
  input[type="number"].form-control.edivi__vitalparam-shared {
    position: relative;
    width: 50% !important;
    height: 100% !important;
    --bs-body-bg: transparent;
    border: 3px solid #333333 !important;
    border-radius: 0 !important;
    font-size: 4rem;
    text-align: center;
    font-weight: 600;
    --bs-body-color: #fff;

    &::placeholder {
      color: #808080 !important;
    }

    &:active,
    &:focus {
      background: #333333 !important;
    }

    &.edivi__vitalparam-required {
      border-color: rgba(220, 53, 69, 0.8) !important;
      background-color: rgba(220, 53, 69, 0.3) !important;
    }
  }

  input[type="number"].form-control.edivi__vitalparam,
  input[type="number"].form-control.edivi__vitalparam-shared {
    -moz-appearance: textfield;
    appearance: textfield;
    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
  }

  .edivi__vitalparam-mainbuttons {
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(58.33%);
    z-index: 1000;
  }

  .edivi__vitalparam-mainbuttons > .col {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333333;
    &:hover {
      background-color: #5f5f5f;
    }
  }

  .edivi__vitalparam-mainbuttons a,
  .edivi__vitalparam-mainbuttons button {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    background: transparent;
    border-radius: 0;
    border: 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 0.8rem 0;
  }

  @media (max-width: 1155px) {
    .col.position-relative {
      padding-bottom: 0;
    }

    .edivi__vitalparam-mainbuttons {
      flex-direction: column;
      width: calc(100%) !important;
    }

    .edivi__vitalparam-mainbuttons > .col {
      border-left: none !important;
      border-top: 4px solid #191919;
    }

    .edivi__vitalparam-mainbuttons > .col:first-child {
      border-top: none;
    }

    .col-5,
    .keypad-container {
      width: 100%;
      padding-bottom: 200px;
    }
  }

  .keypad-container {
    padding: 20px;
    margin-top: 20px;
  }

  .keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }

  .function-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .keypad-btn {
    background: #333333;
    color: white;
    border: none;
    border-radius: 0;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
  }

  .keypad-btn:hover {
    background: #5f5f5f;
  }

  .keypad-btn.wide {
    grid-column: span 2;
  }

  .active-field {
    background: #333333 !important;
    //box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
  }

  .text-success {
    color: #038c4a !important;
  }

  .text-danger {
    color: #d91225 !important;
  }

  .text-semiwarning {
    color: #d5c215 !important;
  }

  .text-warning {
    color: #d58215 !important;
  }

  .vital-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--main-color);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .vital-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
  }

  .vital-content {
    flex: 1;
    color: white;
    font-size: 14px;
    line-height: 1.4;
  }

  .vital-time {
    color: var(--main-color);
    font-weight: bold;
    margin-right: 15px;
  }

  .vital-value {
    font-weight: 600;
    margin-right: 8px;
  }

  .vital-separator {
    color: #6c757d;
    margin: 0 4px;
  }

  .vital-bemerkung {
    color: #adb5bd;
    font-style: italic;
    margin-top: 5px;
  }

  .vital-author {
    color: #6c757d;
    font-size: 12px;
    margin-top: 3px;
  }

  .delete-btn {
    opacity: 0.7;
    transition: all 0.3s;
    min-width: 40px;
  }

  .delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .stats-row {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
  }

  .stat-item {
    text-align: center;
    color: white;
  }

  .stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 12px;
    color: #bbb;
  }

  .no-vitals {
    text-align: center;
    padding: 40px;
    color: #6c757d;
  }

  .vital-list-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
  }

  .vital-list-container::-webkit-scrollbar {
    width: 6px;
  }

  .vital-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .vital-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .vital-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}
