:root {
  --form-color-primary: #001a3b;
  --form-color-primary-faded: #001a3b62;
  --form-color-primary-transparent: #001a3b0f;
  --form-color-secondary: #f9d2de;
  --form-color-secondary-faded: #f9d2decc;
  --form-color-secondary-transparent: #f9d2de62;

  --form-font-size: max(1rem, 16px);
  --form-font-weight: 300;
  --form-label-font-size: max(0.875rem, 14px);
  --form-label-font-weight: bold;
  --form-border-color: var(--form-color-primary);
  --form-border-radius: 3px;
  --form-switch-border-radius: var(--form-border-radius);
  --form-active-color: var(--form-color-primary);

  --form-alert-success-bg: #d4edda;
  --form-alert-success-main: var(--form-color-primary);
  --form-alert-success-border: var(--form-alert-success-main);
  --form-alert-note-bg: #ffecf4;
  --form-alert-note-main: var(--form-color-primary);
  --form-alert-warning-bg: #fff6da;
  --form-alert-warning-main: var(--form-color-primary);

  --form-greenlight-color: #35cc8c;
  --form-greenlight-bg: #e9fbf4;
  --form-invalid-color: #ff456d;;
  --form-invalid-bg: #f5d5cc;

  --form-multiselect-active-color: var(--form-color-secondary);
  --form-multiselect-highlight-color: var(--form-color-secondary-faded);
}

:root {
  --button-default-color: #204ce5;
  --button-default-font-color: #fff;
  --button-primary-color: #001a3b;
  --button-primary-highlight-color: #134395;
  --button-primary-font-color: #fff;
  --button-secondary-color: #fff;
  --button-secondary-highlight-color: #d4dce1;
  --button-secondary-font-color: #222;
  --button-tertiary-color: #f9d2de;
  --button-tertiary-highlight-color: #f9d2decc;

  --button-font-size: 1rem;
}

:root {
  --navbar-background: #001a3b;
  --navbar-text-color: #ffffff;
}

/* BOOTSTRAP */
/* vvvvvvvvv */
form {
  .text-danger {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important;
  }
  & label:has(+ input),
  & label:has(+ div .form-check),
  & label:has(+ select) {
    font-size: var(--form-label-font-size);
    font-weight: var(--form-label-font-weight) !important;
  }
  *,
  ::after,
  ::before {
    box-sizing: border-box;
  }
  .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
}
.m-1 {
  margin: 0.25rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
/* ^^^^^^^^^ */
/* BOOTSTRAP */

/* delete pages */
main:has(> div dl),
main:has(.form-wrapper-substitute) {
  h3 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5em;
  }

  & > div:has(dl) {
    max-width: 600px;
    margin: 0 auto;
    border: 1px dashed var(--form-border-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.5em;

    @media only screen and (max-width: 600px) {
      width: 100%;
      max-width: unset;
      border-style: solid;
      padding: 0;

      + form:has(.btn[type="submit"]) {
        justify-content: space-between;
        display: flex;
        font-size: 0;
      }
    }

    h4 {
      font-size: 1.25rem;
      font-weight: normal;
      padding: 0 1rem;
      padding-bottom: 0.25em;
      text-align: center;
      border-bottom: 1px solid var(--form-border-color);
      margin-bottom: 0.5em;

      @media only screen and (max-width: 600px) {
        padding: 0.5em 0;
        margin-bottom: 0;
      }
    }

    dl {
      margin: 0 !important;

      &.row {
        display: grid;
        grid-template-columns: max-content 1fr;

        @media only screen and (max-width: 600px) {
          grid-template-columns: 1fr;
          width: 100%;
        }
      }
    }

    .header {
      box-sizing: border-box;
      padding: 0 !important;
      padding-left: 1rem !important;
      padding-right: 0.5rem !important;
      text-align: end;

      &::after {
        content: ":";
        font-weight: 300;
      }

      @media only screen and (max-width: 600px) {
        line-height: 1.15em;
        padding: 0 0.5rem !important;
        padding-top: 0.5em !important;
        text-align: start;
        font-weight: normal;

        &:has(+ .body > input[type="checkbox"]) {
          &:has(+ .body > input:checked)::after {
            content: ": Ja";
            font-weight: 300;
          }
          &:has(+ .body > input:not(:checked))::after {
            content: ": Nej";
            font-weight: 300;
          }
          border-bottom: 1px dashed var(--form-border-color);
          padding-bottom: 0.5em !important;
        }
      }
    }

    .body {
      box-sizing: border-box;
      padding: 0 !important;
      padding-right: 1rem !important;
      word-break: break-all;

      &:last-child {
        margin-bottom: 0 !important;
      }

      @media only screen and (max-width: 600px) {
        line-height: 1.15em;
        padding: 0 0.5rem !important;
        padding-bottom: 0.5em !important;

        &:not(:last-child) {
          border-bottom: 1px dashed var(--form-border-color);
        }

        &:has(> input[type="checkbox"]) {
          display: none;
          visibility: hidden;
        }
      }
    }

    .body:nth-of-type(even),
    .header:nth-of-type(even) {
      background-color: rgba(0, 0, 0, 0.025);

      @media only screen and (max-width: 600px) {
        background-color: rgba(0, 0, 0, 0.05);
      }
    }

    .color-row-display {
      display: inline-block;
      width: 5rem;
      height: 1.15em;
      border: 1px solid var(--form-border-color);
      vertical-align: sub;
    }
  }

  & > div + form {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;

    @media only screen and (max-width: 600px) {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0;
      margin: 0 auto;
      margin-bottom: 2rem;
      width: 100%;
    }
  }
}

/* header */
main:has(> table.table) h1,
main:has(> form) h1,
main:has(> .dt-container) h1,
.form-header-substitute {
  font-size: 2rem;
  text-align: center;
  word-break: break-all;
  word-break: break-word;
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--form-border-color);
}

main:has(table.table),
main:has(> form),
.form-wrapper-substitute {
  font-size: 1.15rem;
  max-width: max(80%, 600px);
  min-width: min-content;
  margin-left: auto;
  margin-right: auto;

  @media only screen and (max-width: 600px) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
}
main:has(> form),
.form-wrapper-substitute {
  width: 60%;

  @media only screen and (max-width: 600px) {
    width: 100%;
  }

  @media only screen and (min-width: 1280px) {
    & > form {
      min-width: 600px;
    }
  }
}

.create-new-container {
  display: flex;
  gap: 1rem;

  @media only screen and (max-width: 600px) {
    justify-content: center;

    .btn {
      padding: 0.5em 1em;
    }
  }
}

.back-note {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--form-color-primary);
  font-weight: 300;

  &:hover {
    text-decoration: underline;
    color: var(--form-color-primary);
  }
}

.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 999;
  isolation: isolate;
}

.btn {
  padding: 0.25em 0.75em;
  max-width: max-content;
  font-size: var(--button-font-size);
  color: var(--button-default-font-color);
  background-color: var(--button-default-color);
  border: solid 2px var(--button-default-color);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 3px;
  -webkit-transition: 200ms;
  -moz-transition: 200ms;
  -ms-transition: 200ms;
  -o-transition: 200ms;
  transition: 200ms;

  &:hover {
    border: solid 2px var(--button-default-color);
  }
  &:has(.material-symbols-outlined),
  &:has(> img) {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }
  &.full-border {
    border: solid 2px var(--button-primary-color);
  }
  &.thin-border {
    border-width: 1px !important;
  }
  &.inactive,
  &:disabled {
    background-color: var(--button-secondary-highlight-color) !important;
    color: #696969 !important;
    border-color: #696969 !important;

    & > img {
      filter: grayscale(100%) brightness(40%);
    }
  }
  &.small {
    padding: 0em 0.5em;
    font-size: max(0.875, 14px);
  }
  &.minimal-exit {
    border: 0;
    border-radius: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;

    border-bottom: solid 1px var(--form-color-primary);
    padding: 0.25em;
    color: black;
    font-weight: 300;

    background-color: transparent;
  }
  &.margin-space {
    margin: 0.5rem 0;
  }

  /* Experimental */
  &.btn-icon {
    padding: 4px;
  }
  &.btn-transparent {
    background-color: transparent;
    border: none;
    color: var(--form-color-primary);
    font-weight: 300;

    &:hover {
      background-color: var(--form-color-primary-transparent);
      text-decoration: none;
      color: var(--form-color-primary);
    }
  }
  &.btn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: unset;
    height: 100%;
    max-height: 100%;

    span,
    p {
      font-size: 1rem;
      font-weight: 300;
      color: var(--form-color-primary);
      margin-top: -1em;
    }
    img {
      height: calc(80% - 2em);
      width: auto;
      opacity: 0.15;
      margin-top: -1em;
    }
  }

  .material-symbols-outlined {
    font-size: max(1.15em, 24px);
  }

  &.btn-primary,
  &.btn-outline-primary,
  &.btn-success {
    background-color: var(--button-primary-color);
    border: solid 2px var(--button-primary-color);
    color: var(--button-primary-font-color);

    &:hover {
      background-color: var(--button-primary-highlight-color);
    }
  }
  &.btn-secondary,
  &.btn-outline-secondary {
    color: var(--button-secondary-font-color);
    background-color: var(--button-secondary-color);
    border: solid 2px var(--button-primary-color);
    &:hover {
      background-color: var(--button-secondary-highlight-color);
    }
  }
  &.btn-danger,
  &.btn-outline-danger {
    color: var(--button-secondary-font-color);
    background-color: var(--button-tertiary-color);
    border: solid 2px var(--button-primary-color);
    &:hover {
      background-color: var(--button-secondary-color);
      /* color: var(--button-primary-font-color); */
    }
  }

  &.optional {
    border-style: dashed;
  }
}

form,
.form-substitute {
  --form-margin-gap: 1.25rem;
  /*  max-width: 600px;  */
  font-size: var(--form-font-size);
  font-weight: 300;
  margin: 0 auto;

  @media only screen and (max-width: 600px) {
    max-width: 90vw;
    box-sizing: border-box;

    & > div {
      margin-bottom: var(--form-margin-gap) !important;
    }
  }

  &.modal {
    max-width: unset !important;
  }

  .text-primary {
    & {
      position: relative;
      color: var(--form-active-color) !important;
    }
    &::before {
      --car-item-highlight-color: #ffd2da;
      --car-item-highlight-width: 120%;
      content: "";
      display: block;
      position: absolute;
      top: 0em;
      left: -0.25em;
      z-index: -1;
      width: var(--car-item-highlight-width);
      height: 1.5em;
      background-color: var(--car-item-highlight-color);
      clip-path: polygon(0 15%, 98% 0, 100% 85%, 2% 100%);
    }
  }

  .form-control-color {
    width: 5rem;
    max-height: 3rem;
    padding: 0;
  }

  .horizontal {
    display: flex;
    gap: 2em;

    & > * {
      flex: auto;
    }
    .third {
      flex: 33%;
    }
    .fourth {
      flex: 25%;
    }
    .fifth {
      flex: 20%;
    }

    @media only screen and (max-width: 600px) {
      gap: var(--form-margin-gap);
      flex-direction: column;
    }
  }

  .flex {
    display: flex;
    flex-wrap: wrap;

    &.gap {
      gap: 0.5rem 1rem;
    }
    &.gap-large {
      gap: 1rem 2rem !important;
    }
  }

  /* Only two children */
  .filler-flex {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 1rem;
    & > *:first-child {
      flex: auto;
    }
    & > *:last-child {
      width: max-content;
    }
  }

  label:has(+ input),
  label:has(+ div .form-check),
  label:has(+ select),
  label:has(+ textarea) {
    font-size: var(--form-label-font-size);
    font-weight: var(--form-label-font-weight) !important;
  }

  .input-group-text {
    border: 1px solid var(--form-border-color);
    border-radius: var(--form-border-radius);
  }

  input:not([type="file"]),
  select,
  textarea {
    border: 1px solid var(--form-border-color) !important;
    border-radius: var(--form-border-radius) !important;
  }

  .form-group:has(.btn[type="submit"]) {
    @media only screen and (max-width: 600px) {
      display: flex;
      justify-content: space-between;
    }
  }

  .form-group:not(:last-child) {
    margin-bottom: 1.25rem;

    @media only screen and (max-width: 600px) {
      margin-bottom: 0;
    }
  }

  .text-danger {
    position: absolute;
    font-size: max(12px, 0.75rem);
  }
  /* div:has(>.text-danger) {
    margin-bottom: 1.5rem !important;
  } */

  input[type="file"] {
    word-break: break-all;
    overflow: clip;
    width: 100%;
  }
  input[type="file"] + img {
    display: block;
    border: 1px dashed var(--form-border-color);
    width: max-content;
    padding: 0.25em;
    aspect-ratio: 1/1;

    &[src]:not([src=""]) {
      object-fit: contain;
      max-width: 100%;
      max-height: 128px;
      aspect-ratio: unset;
      padding: 0;
      border: 0;

      &::before {
        content: "";
      }
    }
  }

  select:disabled {
    background-color: var(--form-color-primary-faded);
    color: white;
  }

  .form-check {
    display: flex;
    width: max-content;
    padding: 0 0.25em;
    padding-bottom: 2px;
    margin: 0 !important;
    border-bottom: 1px solid var(--form-border-color);

    &:not(:first-child) {
      margin-left: 0.5em;
    }

    .form-check-label {
      position: relative;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      padding-left: 3em;
      min-height: max(24px, 1rem);
    }
    .form-check-input {
      display: none;
    }
    .form-check-label::before {
      content: "";
      position: absolute;
      left: 0.25em;
      width: 2em;
      height: 0.875em;
      background-color: #adb5bd;
      border-radius: var(--form-switch-border-radius);
      transition: background-color 0.2s ease-in-out;
    }
    .form-check-label::after {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1.25em;
      height: 1.25em;
      background-color: white;
      border-radius: var(--form-switch-border-radius);
      transition: transform 0.2s ease-in-out;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--form-border-color);
    }

    /* input befroe label */
    .form-check-input:checked + .form-check-label::before {
      background-color: var(--form-active-color);
    }
    .form-check-input:checked + .form-check-label::after {
      transform: translate(1.25em, -50%);
    }

    /* Alternative HTML structure, input nested inside label */
    .form-check-label:has(.form-check-input:checked)::before {
      background-color: var(--form-active-color);
    }
    .form-check-label:has(.form-check-input:checked)::after {
      transform: translate(1.25em, -50%);
    }
  }

  .discount-card {
    border: 1px solid var(--form-border-color);
    border-radius: var(--form-border-radius);
    margin-bottom: 2rem;
    overflow: hidden;
  }

  .discount-card-header {
    background: var(--form-color-primary);
    color: white;
    padding: 0.5rem;
    border-bottom: none;
  }

  .discount-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 400;
  }

  .discount-card-body {
    padding: 1rem;
  }

  .discount-section-title {
    /* border-left: 4px solid var(--form-border-color); */
    margin-bottom: 0.5rem;
  }

  .discount-section-title h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: var(--form-label-font-weight);
  }

  .discount-table-wrapper {
    overflow: hidden;
  }

  .discount-table {
    margin-bottom: 0;
  }

  .discount-table thead th {
    background: var(--form-color-primary);
    color: white !important;
    font-weight: var(--form-label-font-weight);
    font-size: var(--form-label-font-size);
    color: #495057;
    padding: 0.5rem;
    text-align: center;
    vertical-align: middle;
  }

  .discount-input {
    text-align: center;
  }

  .discount-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  }

  .supplier-name-cell {
    min-width: 20ch;
  }

  .model-name-cell {
    font-size: 1rem;
  }

  .divider-line {
    height: 2px;
    margin: calc(1rem - 2px) 0;
  }

  @media (max-width: 768px) {
    .discount-table thead th,
    .discount-table tbody td {
      font-size: 0.875rem;
    }

    .discount-input {
      padding: 0;
    }
  }
}

.alert.alert-info {
  border-color: var(--form-alert-note-main);
  color: var(--form-alert-note-main);
  background-color: var(--form-alert-note-bg);
}
.alert.alert-warning {
  background-color: var(--form-alert-warning-bg);
  border-color: var(--form-alert-warning-main);
  color: var(--form-alert-warning-main);
}

/* DataTable */
.dt-container {
  font-weight: 300;
  font-size: 1rem;
}

.dt-layout-row:has(+ .dt-layout-row .dt-by-mobile) {
  @media only screen and (max-width: 600px) {
    display: flex !important;
    flex-wrap: wrap;
  }
}

table.table {
  background-color: white;
  border: 1px solid gray;
  border-radius: 4px;
  position: relative;
  font-weight: 300;
  font-size: 1rem;

  thead th,
  table.dataTable tfoot th {
    font-weight: normal;
  }

  tbody {
    tr:first-child > td {
      border-top: 0;
    }
    tr:last-child > td {
      border-bottom: 0 !important;
    }

    tr > td {
      border-top: 0 !important;
      border-bottom-width: 1px;
      vertical-align: middle;
    }

    tr td:has(> div.details-container) {
      padding: 0.5em 0.75em;
    }

    tr.dt-hasChild + tr[data-dt-row] {
      --dt-stripe-color: #001a3b05;
      background-color: white;
      background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 1rem,
        var(--dt-stripe-color) 1rem,
        var(--dt-stripe-color) 2rem
      );
    }

    td {
      border-style: dashed !important;
      border-left-width: 0px !important;
      border-right-width: 1px !important;
      border-color: rgba(0, 0, 0, 0.3);
      position: relative;
      padding: 0.25em 0.5em !important;

      &:first-child {
        border-left-width: 0 !important;
      }
      &:last-child {
        border-right-width: 0 !important;
      }
    }

    .dt-empty {
      padding-top: 0.75rem !important;
      padding-bottom: 0.5rem !important;
    }

    @media only screen and (max-width: 600px) {
      .details-container {
        padding-bottom: 0.5em;
        word-break: break-all;

        p {
          display: flex;
          justify-content: left;
          align-items: center;
          margin: 0 !important;
          padding: 0.25rem;

          &:nth-child(even) {
            background-color: var(--form-color-primary-transparent);
          }

          strong {
            margin-right: 0.5rem;
          }

          &:last-child {
            display: flex;
            justify-content: space-between;
            gap: 0.5rem;
            font-size: 0;
            margin-top: 0.5rem !important;
            strong {
              display: none;
            }
          }
        }
      }
    }
  }

  .nowrap {
    white-space: nowrap;
  }

  .oneline .btn {
    padding-bottom: 0;
    padding-top: 0;
  }

  .color-row-display {
    display: inline-block;
    width: 5rem;
    height: 1.15em;
    border: 1px solid var(--form-border-color);
    vertical-align: sub;
  }

  /* Loading */
  &:not(table.dataTable, table.no-load, table.dt-ignore) {
    & {
      width: 100%;
      height: 100%;
      min-height: 200px;
      background-color: rgba(0, 0, 0, 0.01);
      border: 0;
      position: relative;
    }

    & > * {
      display: none;
    }

    &::after {
      --width: 32px;
      --thickness: 4px;

      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      margin-top: calc(var(--width) / -2);
      margin-left: calc(var(--width) / -2);

      width: var(--width);
      height: var(--width);
      border-radius: 50%;

      border: var(--thickness) solid rgba(0, 0, 0, 0.1);
      border-left-color: #09f; /* Change this to your theme color */

      animation: spin 1s linear infinite;
    }
  }
}

.dt-layout-row {
  & .dt-paging-button {
    &:not(.disabled):hover {
      border: 1px dashed var(--form-border-color) !important;
      background-color: var(--form-active-color) !important;
      background-image: unset !important;
      color: black !important;
    }

    &.current {
      & {
        border: 1px solid var(--form-border-color) !important;
        background-color: white !important;
        background-image: unset !important;
      }
      &:hover {
        border: 1px solid var(--form-border-color) !important;
        background-color: white !important;
        background-image: unset !important;
      }
    }
  }
}

.dt-icon-tooltip {
  & {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    width: max-content;
    max-width: 300px;
    box-sizing: border-box;
    padding: 0.5em;
    border-radius: 6px;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  &::after {
    --size: 6px;
    content: "";
    position: absolute;

    bottom: calc(var(--size) * -1);
    left: 50%;
    margin-left: calc(var(--size) * -1);

    width: 0;
    height: 0;
    border-left: var(--size) solid transparent;
    border-right: var(--size) solid transparent;
    border-top: var(--size) solid black;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  &.hidden {
    visibility: hidden;
    display: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.multiselect-dropdown {
  display: flex;
  padding: 0.5em 1em;
  border-radius: 6px;
  border: solid 1px var(--form-border-color);
  background-color: white;
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 0.75rem;
  cursor: pointer;

  @media screen and (max-width: 600px) {
    &:has(.optext)::after {
      content: "Tryck för att se alla val";
      color: black;
      background-color: transparent;
      cursor: pointer;
      font-weight: 300;
    }

    & > span.optext {
      display: none !important;
    }
  }
}
.multiselect-dropdown span.optext,
.multiselect-dropdown span.placeholder {
  margin-right: 0.5em;
  margin-bottom: 2px;
  border-radius: 2px;
  display: block;
  width: max-content;
}
.multiselect-dropdown span.optext {
  background-color: var(--form-multiselect-active-color);
  color: black;
  padding: 0.25em 0.75em 0.45em 0.5em;
  display: flex;
  vertical-align: bottom;
  width: max-content;
}
.multiselect-dropdown span.optext:has(.optdel:hover) {
  background-color: var(--form-multiselect-highlight-color);
  color: black;
  outline: 1px dashed #134395;
}
.multiselect-dropdown span.optext .optdel {
  font-size: 0.7em;
  margin-top: 0.4em;
  margin-left: 0.5em;
  cursor: pointer;
  color: black;
}
.multiselect-dropdown span.optext .optdel:hover {
  color: #c66;
}
.multiselect-dropdown span.placeholder {
  color: black;
  background-color: transparent;
  cursor: pointer;
}
.multiselect-dropdown-list-wrapper {
  z-index: 10;
  border-radius: 4px;
  border: solid 1px var(--form-border-color);
  display: none;
  margin: -1px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
}
.multiselect-dropdown-list-wrapper .multiselect-dropdown-search {
  border: 0 !important;
  box-shadow: 0 !important;
  outline: 0 !important;

  border-bottom: 1px dashed var(--form-border-color) !important;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  font-size: var(--form-font-size);
  font-weight: var(--form-font-weight);
}
.multiselect-dropdown-list {
  max-height: 150px;
  padding: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.5em;
  cursor: default;
}
.multiselect-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.multiselect-dropdown-list::-webkit-scrollbar-thumb {
  background-color: #bec4ca;
  border-radius: 3px;
}

.multiselect-dropdown-list div {
  border-radius: 4px;
  padding: 0.23em 0.5em 0.25em 0.5em;
  transition: 40ms;
  cursor: pointer;
}
.multiselect-dropdown-list input {
  display: none;
}
.multiselect-dropdown-list label {
  cursor: pointer;
}
.multiselect-dropdown-list div.checked {
  background-color: var(--form-multiselect-active-color);
  color: black;
}
.multiselect-dropdown-list div.checked:hover {
  background-color: var(--form-multiselect-highlight-color);
  color: black;
  outline: 1px dashed var(--form-border-color);
}
.multiselect-dropdown-list div:hover {
  background-color: transparent;
  outline: 1px dashed var(--form-border-color);
}
.multiselect-dropdown span.maxselected {
  width: 100%;
}
.multiselect-dropdown-all-selector {
  border-bottom: solid 1px #999;
}
