/* Custom styles for ITV */

/* Prevent page shift when modal opens/closes */
body.modal-open {
  overflow: visible !important;
  padding-right: 0 !important;
}

/* Remove underline from logo link */
.navbar-brand a {
  text-decoration: none !important;
}

/* Remove underline from all table links */
table a,
.table a,
.card-table a,
.list-group a,
.list-group-item a {
  text-decoration: none !important;
}

table a:hover,
.table a:hover,
.card-table a:hover,
.list-group a:hover,
.list-group-item a:hover {
  text-decoration: none !important;
}

/* Cursor pointer utility */
.cursor-pointer {
  cursor: pointer;
}

/* Fix dropdown overflow in table-responsive */
.table-responsive {
  overflow: visible !important;
}

/* Make table rows clickable */
tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background-color: rgba(var(--tblr-primary-rgb), 0.04);
}

/* Remove link styling in clickable rows - entire row is link */
tr.clickable-row td a.row-link {
  color: inherit;
  text-decoration: none;
}

tr.clickable-row td a.row-link:hover {
  text-decoration: none;
}

/* Background image for logged-in pages */
.page-wrapper.has-bg-image::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 50vh;
  height: 50vh;
  background: url('/images/bg-trav.webp') top center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

/* Solid color badges should have white text */
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-dark,
.badge.bg-blue,
.badge.bg-azure,
.badge.bg-indigo,
.badge.bg-purple,
.badge.bg-pink,
.badge.bg-red,
.badge.bg-orange,
.badge.bg-yellow,
.badge.bg-lime,
.badge.bg-green,
.badge.bg-teal,
.badge.bg-cyan {
  color: #fff !important;
}
