.expired-license {
  background-color: red;
}

.table tbody tr.flagged {
  background-color: #fff3cd !important;
}

.table tbody tr.flagged td {
  background-color: inherit;
}

.table tbody tr.expired-license > td {
  background-color: inherit;
}

.table-hover tbody tr.flagged:hover td {
  background-color: #ffe69c !important;
}

.view-id-cell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  background-color: inherit;
}

.view-id-cell .view-id-button {
  --action-btn-size: clamp(6rem, 10vw, 9rem);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--action-btn-size);
  min-width: var(--action-btn-size);
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  text-align: center;
  white-space: normal;
}

.guard-flag-button {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.guard-flag-button:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 4px;
}

.guard-flag-image {
  display: block;
  width: clamp(4rem, 6vw, 6rem);
  height: auto;
  max-width: 100%;
}

#search-input {
  font-size: 50px;
  height: 80px;
  flex-grow: 1;
  margin-right: 10px;
}

.search-btn {
  height: 80px; /* Match the button height to the input field height */
}

.action-btn {
  --action-btn-size: clamp(6rem, 10vw, 9rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--action-btn-size);
  min-width: var(--action-btn-size);
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  text-align: center;
  white-space: normal;
}

.action-btn.btn-danger {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

.action-btn.btn-danger:hover,
.action-btn.btn-danger:focus,
.action-btn.btn-danger:active {
  background-color: #f8f9fa !important;
  color: #000 !important;
  border-color: #000 !important;
}

#overlay-div {
  padding: clamp(1rem, 2vw, 2.5rem);
  box-sizing: border-box;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#overlay-div .overlay-content {
  background-color: #fff;
  border-radius: 10px;
  width: min(90vw, 640px);
  max-width: 100%;
  max-height: min(calc(100dvh - 2rem), 720px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 2rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2vw + 1rem, 2.5rem);
  line-height: 1.3;
}

#overlay-div .overlay-body {
  flex: 1 1 auto;
  overflow-y: auto;
  text-align: left;
}

#overlay-div .overlay-details {
  width: 100%;
}

#overlay-div .overlay-details .card {
  width: 100%;
  margin: 0;
}

#overlay-div .overlay-details .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#overlay-div .overlay-details .card-text {
  font-size: clamp(1rem, 1vw + 0.75rem, 1.35rem);
}

#overlay-div .overlay-details img {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

#overlay-div .overlay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

#overlay-div .overlay-actions .btn {
  flex: 1 1 45%;
  min-width: 8rem;
}

#overlay-div .overlay-actions .btn-spacing {
  margin-right: 0;
  white-space: normal;
}

@media (orientation: landscape) {
  #overlay-div {
    padding: clamp(0.75rem, 1.5vw, 1.5rem);
  }

  #overlay-div .overlay-content {
    width: min(80vw, 720px);
    max-height: calc(100dvh - 1.5rem);
    font-size: clamp(1.1rem, 1.2vw + 1rem, 2rem);
  }

  #overlay-div .overlay-details .card-text {
    font-size: clamp(0.95rem, 0.9vw + 0.7rem, 1.2rem);
  }
}

@media (max-height: 600px) {
  #overlay-div {
    align-items: flex-start;
  }

  #overlay-div .overlay-actions .btn {
    flex-basis: 100%;
  }
}

#search-input.expanded {
  font-size: 100px !important;
  height: 200px !important;  /* Adjust this to the desired expanded height */
  transition: height 0.3s ease;
}

.nav-item {
  margin-right: 10px;  /* Adjust as needed */
}

.header {
  padding-top: 1.5rem;
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.header-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.header-bottom .header-nav {
  width: 100%;
}

.header-bottom .header-stats {
  width: 100%;
}

.header-title {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-self: start;
}

.header-title #club-name {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  margin: 0;
  line-height: 1.1;
  text-align: left;
  word-break: break-word;
}

.header-clock {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  justify-self: center;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.header-menu .navbar-toggler {
  padding: 0.75rem;
  border-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: clamp(2.5rem, 6vw, 3.5rem);
}

@media (max-width: 991.98px) {
  .header-top {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    position: relative;
    flex-wrap: nowrap;
  }

  .header-title {
    flex: 0 1 auto;
    min-width: 0;
  }

  .header-clock {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    min-width: max-content;
  }

  .header-menu {
    margin-left: auto;
  }
}

@media (max-width: 576px) {
  .header-top {
    gap: 0.5rem;
  }
}

.header-menu .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-nav {
  width: 100%;
  padding: 0;
}

.header-nav .navbar-collapse {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.header-nav .navbar-nav {
  width: 100%;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-direction: column;
  align-items: stretch;
}

.header-nav .nav-link {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  text-align: center;
  width: 100%;
}

.header-checked-in {
  font-size: 36px;
  margin-top: 10px;
  color: #333;
}

.header-clock-display {
  margin-top: 0;
  color: #333;
}

.header-right, .header-center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.table-custom tr {
  line-height: 2;
}

table td, .btn {
  font-size: 28px;
}

.bg-success {
  background-color: #28a745;
}

.bg-danger {
  background-color: #dc3545;
}

.table {
  border-collapse: collapse;
  width: 100%;
}

.table th {
  background-color: #f2f2f2;
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid #ddd;
}

.table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table tr:hover {
  background-color: #f5f5f5;
}

.table a {
  text-decoration: none;
  color: #ffffff;
}

.table a:hover {
  color: #000000;
  text-decoration: underline;
}

thead {
  position: sticky;
  top: 0;
  background-color: white;
}

@media (max-width: 991px) {
  .header-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title menu"
      "clock clock";
  }
  .header-bottom {
    flex-direction: column;
  }
  .header-title {
    grid-area: title;
  }
  .header-clock {
    grid-area: clock;
    margin-top: 0.5rem;
  }
  .header-menu {
    grid-area: menu;
  }
  .header-nav .navbar-nav {
    gap: 0.5rem;
  }
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 100;  /* ensures the sticky header appears above the content */
}

html, body {
  height: 100%;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.table-container {
  flex-grow: 1;
  overflow-y: auto;
}

.btn-spacing {
  margin-right: 15px; /* eller den avstanden du ønsker */
  white-space: nowrap;  /* Prevents the text inside the button from wrapping */
}

.center-text {
  text-align: center;
}

.form-large-text input[type="text"], .form-large-text input[type="date"], select.form-control {
  font-size: 36px;
}

.form-control {
  background-color: lightblue;
  font-size: 24px;
}

.break-line {
  white-space: pre-line;
}

.custom-radio-label {
  font-size: 24px;
}

.btn-transparent,
.opacity-50 {
  opacity: 0.5;
}

#clock {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  cursor: pointer;
}

#payment-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  flex-direction: column;
  gap: clamp(0.5rem, 2vh, 1.25rem);
  padding: clamp(1rem, 2vh, 2rem);
  box-sizing: border-box;
  overflow-y: auto;
}

#payment-overlay-heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
}

#payment-overlay p {
  font-size: clamp(1.25rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin: 0;
}

#payment-overlay img {
  width: min(92vw, 900px);
  max-height: 60dvh;
  object-fit: contain;
  height: auto;
  margin: 0;
}
.stats-table .flagged-list {
  background-color: #ffc107 !important;
}
