/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 */

.inline-action { display: none; }
.inline-edit .inline-action { display: initial; }
:root {
  --safe-bottom-distance: env(safe-area-inset-bottom);
  --menu-saving-distance: calc(env(safe-area-inset-bottom) + 9rem);
  --distance-menu-bottom: calc(env(safe-area-inset-bottom) + 4rem);
  --safe-top-distance: env(safe-area-inset-top);
  --safe-top-distance-l3: 0.5rem;
  --safe-right-distance: env(safe-area-inset-right);
  --safe-left-distance: env(safe-area-inset-left);
  -webkit-touch-callout: none !important;
}

.BeaconContainer {
  margin-top: var(--safe-top-distance) !important;
  padding-bottom: var(--menu-saving-distance) !important;
  height: calc(95vh - var(--safe-bottom-distance) - var(--safe-top-distance)) !important;
}

.hw-combobox {
  width: 100%;
  max-width: 20rem;
  float: left;
  position: relative;
}

.hw-combobox__main__wrapper {
  width: 100%;
  max-width: 20rem;
  position: relative;
}

.hw-combobox.hw-combobox--multiple .hw-combobox__input {
  line-height: var(--hw-line-height);
}

.hw-combobox .hw-combobox__chip {
  background-color: #f3f4f6;
  border-color: transparent;
  border-radius: 9999px;
  color: #374151;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  padding: 0.0625rem 0.375rem 0.0625rem 0.5rem;
}

.hw-combobox .hw-combobox__chip__remover {
  min-height: 0.875rem;
  min-width: 0.875rem;
  background-size: 0.875rem;
}

@media (max-width: 639px) {
  #modal .hw-combobox,
  #modal .hw-combobox__main__wrapper {
    max-width: 100%;
    min-inline-size: 0;
  }

  #modal .hw-combobox__input {
    min-width: 0;
  }
}

.hw-combobox input {
  pointer-events: auto !important;
}

.filter-field .hw-combobox,
.filter-field .hw-combobox__main__wrapper {
  max-width: 100%;
  min-inline-size: 0;
}

.filter-field .hw-combobox__input {
  min-width: 0;
}

.filter-field .hw-combobox__main__wrapper {
  min-height: 2.75rem;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  border-radius: 1.375rem;
  border-color: #d1d5db;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  padding-left: 1rem;
}

.filter-field .hw-combobox__main__wrapper:focus-within {
  border-color: #9ca3af;
}

.filter-field .hw-combobox__listbox,
#modal .hw-combobox__listbox {
  top: calc(100% + 0.5rem);
  border-color: #d1d5db;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  overflow: hidden auto;
}

.filter-field .hw-combobox__option,
#modal .hw-combobox__option {
  padding: 0.5rem 1rem;
}

.search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5l10 10M15 5L5 15'/%3E%3C/svg%3E");
  background-size: contain;
  cursor: pointer;
  height: 1rem;
  width: 1rem;
}

.hw-combobox__dialog {
  z-index: 10000 !important;
  position: fixed !important;
}

.hw-combobox__dialog[open] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  top: var(--hw-dialog-top, 0px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  height: var(--hw-dialog-height, 100dvh) !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.hw-combobox__dialog__label {
  order: 1;
  padding: 1rem 1rem 0.5rem;
}

.hw-combobox__dialog__listbox {
  order: 2;
  flex: 0 1 auto;
  min-height: 0;
  margin: auto 0 0;
  overflow-y: auto;
  padding: 0 0.5rem;
}

.hw-combobox__dialog__input {
  order: 3;
  flex: none;
  height: 2.75rem;
  width: auto;
  margin: 0.5rem 1rem 1rem;
  padding: 0 1rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  font-size: 1rem;
}

.hw-combobox__dialog__input:focus {
  border-color: #9ca3af;
  outline: none;
}

.hw-combobox__dialog__done {
  order: 4;
  flex: none;
  height: 2.75rem;
  margin: 0 1rem 1rem;
  border-radius: 9999px;
  background-color: #16a34a;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.hw-combobox__dialog__listbox [role="option"] {
  align-items: center;
  gap: 0.5rem;
}

@layer base {
  .hw-combobox__dialog__listbox [role="option"]:not([hidden]),
  .hw-combobox__dialog__listbox [role="option"][aria-selected="true"] {
    display: flex !important;
  }
}

.hw-combobox__dialog__listbox [role="option"][aria-selected="true"]::after {
  content: "";
  margin-inline-start: auto;
  height: 1.25rem;
  width: 1.25rem;
  flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.hw-combobox__dialog__wrapper {
  z-index: 9999 !important;
  position: fixed !important;
  inset: 0 !important;
}

.hw-combobox__listbox {
  z-index: 9998 !important;
  position: absolute !important;
}

.hw-combobox__dialog__wrapper::backdrop {
  z-index: 9998 !important;
}

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

.table-map-grid-lines {
  background-image:
      repeating-linear-gradient(#ccc 0 1px, transparent 1px 100%),
      repeating-linear-gradient(90deg, #ccc 0 1px, transparent 1px 100%);
  background-position: -2px -2px
}

/* iOS Safari long-press starts text selection on the table numbers unless every descendant opts out */
.table-map-grid-lines,
.table-map-grid-lines * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  -moz-animation: spinner 1500ms infinite linear;
  -ms-animation: spinner 1500ms infinite linear;
  -o-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes slide-in {
  from {
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    max-height: 3000px;
    margin-bottom: initial;
    padding-top: initial;
    padding-bottom: initial;
  }
}
