@view-transition {
  navigation: auto;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

main {
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  /* overflow-y: hidden; */
}

.dropdown-toggle {
  outline: 0;
}

.btn-toggle {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), 0.85);
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}

[data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), 0.85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.scrollarea {
  overflow-y: auto;
}

.ui-autocomplete .ui-state-active {
  border: none;
}

.price {
  text-align: right;
}

input[readonly="readonly"] {
  background-color: #f0f0f0;
}

#grand_total {
  font-weight: bold;
}

.head {
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 3px 0 3px 0;
  margin: 3px 0 3px 0;
}

.alert-error {
  --bs-alert-color: var(--bs-danger-text-emphasis);
  --bs-alert-bg: var(--bs-danger-bg-subtle);
  --bs-alert-border-color: var(--bs-danger-border-subtle);
  --bs-alert-link-color: var(--bs-danger-text-emphasis);
}

.claimed {
  background: #f0f0f0;
}

.active {
  background: #d8ffd8;
}

.odd {
  background: #fff;
  padding: 10px;
}

.even {
  background: #f0f0f0;
  padding: 10px;
}

.odd:hover,
.even:hover {
  background: lightyellow;
}

.ui-autocomplete {
  z-index: 0; /* adjust this value */
}

.field-error {
  font-weight: bold;
  color: #ff0000;
}

.home-link {
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
}

.error {
  background-color: ivory;
  border: none;
  outline: 2px solid red;
}

@media print {
  body {
    font-size: 10px;
  }

  header,
  footer,
  .end_date,
  .start_date,
  .sidebar,
  .submit,
  .dropdown {
    display: none;
  }

  .pull-right {
    float: none;
  }

  #main {
    overflow: visible;
  }

  .col-p-1,
  .col-p-2,
  .col-p-3,
  .col-p-4,
  .col-p-5,
  .col-p-6,
  .col-p-7,
  .col-p-8,
  .col-p-9,
  .col-p-10,
  .col-p-11,
  .col-p-12 {
    float: left;
  }
  .col-p-12 {
    width: 100%;
  }
  .col-p-11 {
    width: 91.66666667%;
  }
  .col-p-10 {
    width: 83.33333333%;
  }
  .col-p-9 {
    width: 75%;
  }
  .col-p-8 {
    width: 66.66666667%;
  }
  .col-p-7 {
    width: 58.33333333%;
  }
  .col-p-6 {
    width: 50%;
  }
  .col-p-5 {
    width: 41.66666667%;
  }
  .col-p-4 {
    width: 33.33333333%;
  }
  .col-p-3 {
    width: 25%;
  }
  .col-p-2 {
    width: 16.66666667%;
  }
  .col-p-1 {
    width: 8.33333333%;
  }
}
