html,
body {
  min-height: 100vh !important;
}

.is-fixed-bottom {
  position: fixed;
  bottom: 0;
  height: 35px;
  width: 100%;
  padding: 10px;
}

.button.is-rounded
{
    border-radius: 5px!important;
    padding-left: 18px!important;
    padding-right: 18px!important;
}

.modal-close {
    background: #787878!important;
    inset-inline-end: 3.5rem!important;
    top: 2.5rem!important;
    z-index: 99999999999999;;
}

.is-full-height-fixed {
  /* 100vh (eller 101vh) minus header og footer */
  min-height: calc(100vh - var(--header-height, 0px) - var(--footer-height, 0px)) !important;
  max-height: calc(100vh - var(--header-height, 0px) - var(--footer-height, 0px)) !important;
  overflow-y: auto;
}

.is-main-content {
  padding-left: 10px;
  padding-right: 10px;
}

.has-icon {
  position: relative;
}

.has-icon .top-left {
  position: absolute;
  top: 0rem;
  left: -0.7rem;
  z-index: 1000;
  cursor: pointer;
}

.has-icon .top-right {
  position: absolute;
  top: 0rem;
  right: 0px;
  z-index: 1000;
  cursor: pointer;
}

.has-dimmed-icon {
  opacity: 0.5;
}

/* App Modal - Fullscreen with padding */
#app-modal.modal.is-active {
  z-index: 9999999;
}

#app-modal .modal-background {
  background-color: rgba(10, 10, 10, 0.86);
}

#app-modal .modal-card {
  max-width: none;
  width: calc(100vw - 80px);
  height: calc(100vh - 48px);
  margin: 20px;
  display: flex;
  flex-direction: column;
}

#app-modal .modal-card-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0px !important;
  background-color: unset !important;
  border-radius: 10px !important;
}

#app-modal .modal-card-head,
#app-modal .modal-card-foot {
  flex-shrink: 0;
}


.sidebar-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  opacity: 0.5;
}

.sidebar-handle.left {
  left: -30px;
  border-radius: 0 4px 4px 0;
}

.sidebar-handle.right {
  right: -30px;
  border-radius: 4px 0 0 4px;
}

.sidebar-handle.left:hover {
  left: 0;
  opacity: 1;
}

.sidebar-handle.right:hover {
  right: 0;
  opacity: 1;
}

.sidebar-handle.hidden {
  display: none;
}

.sidebar-handle i {
  pointer-events: none;
}

.logo {
  width: 100px
}


@media screen and (max-width: 1023px) {
  .sidebar-handle {
    display: none;
  }
}

.collapsable-closed ul {
  display: none;
}

.navbar-media {
  padding-top: 14px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Bulma Override Burger Menu*/
.navbar-brand {
  display: inline-flex !important;
  float: inline-start;
  background-color: var(--bulma-primary);
}

.navbar-brand-burger {
  align-items: stretch;
  flex-shrink: 0;
  min-height: var(--bulma-navbar-height);

}

.navbar-burger {
  margin-top: 6px;
  margin-left: 6px;
  color: black;
}

.link-icon {
  height: 40px;
}

  .select2-container--default .select2-selection--single,
  .state-select .state-dropdown {
    background-color: #fff;
    border-radius: 4px;
    height: 40px;
    align-content: center;
  }

  .select2-selection__placeholder {
    color: #000 !important;
  }

  .select2-selection__arrow {
    display: none !important;
  }

  @media screen and (max-width: 768px) {
    .company-logo-container {
      float: inline-end !important;
      border-radius: unset !important;
      background-color: transparent !important;
      box-shadow: none !important;
    }

    .company-logo-container .image-upload-container {
      max-width: unset !important;
    }
  }

  @media screen and (min-width: 769px) {
    .company-logo-container {
      float: inline-end !important;
      border-radius: unset !important;
      background-color: transparent !important;
      box-shadow: none !important;
      max-width: 200px !important;
    }

    .company-logo-container .image-upload-container {
      max-width: 200px !important;
    }
  }


  @media screen and (max-width: 1023px) {

    .navbar-brand .navbar-item,
    .navbar-tabs .navbar-item {
      align-items: center;
      display: block !important;
    }

    .navbar-menu {
      background-color: var(--bulma-navbar-background-color);
      box-shadow: unset !important;
      padding: .5rem 0.5rem;

    }

    .navbar-link:not(.is-arrowless):after {
      border-color: var(--bulma-navbar-dropdown-arrow);
      display: none !important;

    }

    .navbar-dropdown .navbar-item:not(.is-active, .is-selected) {
      background-color: transparent !important;
      color: #fff;
    }

    .navbar-item,
    .navbar-link {
      padding: .1rem .1rem !important;
    }

    .navbar-brand {
      display: none !important;
      float: none !important;
    }

    .navbar-media {
      display: none;
    }
  }

  @keyframes flash {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.3;
    }
  }

  @media (prefers-color-scheme: light) {

    /* Select2 Multiple Tags - Bulma Style */
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: hsl(var(--bulma-tag-h), var(--bulma-tag-s), var(--bulma-tag-background-l)) !important;
    border: none !important;
    border-radius: 4px !important;
    color: hsl(var(--bulma-tag-h), var(--bulma-tag-s), var(--bulma-tag-color-l)) !important;
    padding: 0.25em 0.5em !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin: 0.125rem 0.25rem 0.125rem 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    border: none !important;
    margin-right: 0.25rem !important;
    font-size: 1rem !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    transition: background-color 0.2s !important;
    font-size: 0 !important;
  }

  .select2-container--default .select2-selection__choice__remove::before {
    content: "×" !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }

  .select2-container--default .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
  }

  .select2-container--default .select2-selection--multiple {
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
    min-height: 2.5em !important;
    padding: 0.25rem 0.5rem !important;
    background-color: #fff !important;
  }

  .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important;
    box-shadow: 0 0 0 0.125em hsla(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l), 0.25) !important;
  }

  .select2-container--default .select2-dropdown {
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02) !important;
  }

  .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important;
    color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-invert-l)) !important;
  }

  /* Choices.js - Bulma Style */
  .choices__inner {
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
    min-height: 2.5em !important;
    padding: 0.25rem 0.5rem !important;
    background-color: #fff !important;
  }

  .choices.is-focused .choices__inner {
    border-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important;
    box-shadow: 0 0 0 0.125em hsla(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l), 0.25) !important;
  }

  .choices__list--multiple .choices__item {
    background-color: hsl(var(--bulma-tag-h), var(--bulma-tag-s), var(--bulma-tag-background-l)) !important;
    border: none !important;
    border-radius: 4px !important;
    color: hsl(var(--bulma-tag-h), var(--bulma-tag-s), var(--bulma-tag-color-l)) !important;
    padding: 0.25em 0.5em !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin: 0.125rem 0.25rem 0.125rem 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .choices__list--multiple .choices__item.is-highlighted {
    background-color: hsl(var(--bulma-tag-h), var(--bulma-tag-s), calc(var(--bulma-tag-background-l) - 5%)) !important;
  }

  .choices__button {
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-left: 0.25rem !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    transition: background-color 0.2s !important;
    font-size: 0 !important;
    opacity: 1 !important;
  }

  .choices__button::before {
    content: "×" !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    display: block !important;
  }

  .choices__button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
  }

  .choices__list--dropdown {
    border: 1px solid #dbdbdb !important;
    border-radius: 4px !important;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02) !important;
    background-color: #fff !important;
  }

  .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) !important;
    color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-invert-l)) !important;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #1f1f1f;
    --bg-darker: #161616;
    --bg-dropdown: #2a2a2a;
    --text-light: #e8e8e8;
    --text-muted: #a8a8a8;
    --border-dark: #333;
    --border-light: #444;
    --tag-bg: hsl(var(--bulma-tag-h), var(--bulma-tag-s), 25%);
    --tag-color: #fff;
  }

  /* -----------------------------------------
   Select2 Single
----------------------------------------- */
  .select2-container--default .select2-selection--single,
  .state-select .state-dropdown {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 4px;
    color: var(--text-light) !important;
  }

  .select2-selection__placeholder {
    color: var(--text-muted) !important;
  }

  /* Hide arrow */
  .select2-selection__arrow {
    display: none !important;
  }

  /* -----------------------------------------
   Select2 Multiple Tags
----------------------------------------- */
  .select2-container--default .select2-selection--multiple {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-dark) !important;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--tag-bg) !important;
    color: var(--tag-color) !important;
    border: none !important;
  }

  .select2-container--default .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), 40%) !important;
    color: #fff !important;
  }

  .select2-container--default .select2-dropdown {
    background-color: var(--bg-dropdown) !important;
    border-color: var(--border-dark) !important;
  }

  /* -----------------------------------------
   Choices.js
----------------------------------------- */
  .choices__inner {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-light) !important;
  }

  .choices.is-focused .choices__inner {
    border-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), 50%) !important;
    box-shadow: 0 0 0 0.125em hsla(var(--bulma-primary-h), 70%, 50%, 0.25) !important;
  }

  .choices__list--multiple .choices__item {
    background-color: var(--tag-bg) !important;
    color: var(--tag-color) !important;
  }

  .choices__button {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .choices__list--dropdown {
    background-color: var(--bg-dropdown) !important;
    border-color: var(--border-dark) !important;
  }

  .choices__item--selectable.is-highlighted {
    background-color: hsl(var(--bulma-primary-h), 60%, 45%) !important;
  }

  /* -----------------------------------------
   Navbar (Bulma)
----------------------------------------- */
  .navbar-menu {
    background-color: var(--bg-darker) !important;
  }

  .navbar-dropdown {
    background-color: var(--bg-dark) !important;
  }

  .navbar-item,
  .navbar-link {
    color: var(--text-light) !important;
  }

  /* Mobile */
  @media screen and (max-width: 1023px) {

    .navbar-item,
    .navbar-link {
      padding: .1rem .1rem !important;
      color: var(--text-light) !important;
    }

    .navbar-dropdown .navbar-item:not(.is-active, .is-selected) {
      color: var(--text-muted) !important;
    }
  }

  /* -----------------------------------------
   Input & Dropdown Generic
----------------------------------------- */
  .select2-results__option {
    background: var(--bg-dropdown) !important;
    color: var(--text-light) !important;
  }

  .select2-results__option[aria-selected="true"] {
    background-color: hsl(var(--bulma-primary-h), var(--bulma-primary-s), 35%) !important;
  }

  .choices__list--dropdown .choices__item {
    background-color: var(--bg-dropdown) !important;
    color: var(--text-light) !important;
  }
}