.listing-table.form-label,
.input-group-text .fa-lock,
.input-group-text .fa-unlock {
  cursor: pointer;
}

.unstyled-link {
  color: inherit;
  text-decoration: none;
}

/* 
 * Pagination limit
 */
.pagination-limit-label {
  display: inline-block;
  white-space: nowrap;
}

.pagination-limit-select {
  display: inline-block;
  width: auto;
}

/*
 * Tables Sorting
 */
.listing-table thead > tr > th.sorting,
.listing-table thead > tr > th.sorting_asc,
.listing-table thead > tr > th.sorting_asc_disabled,
.listing-table thead > tr > th.sorting_desc,
.listing-table thead > tr > th.sorting_desc_disabled {
  cursor: pointer;
  padding-right: 26px;
  position: relative;
}

.listing-table thead > tr > th.sorting:after,
.listing-table thead > tr > th.sorting:before,
.listing-table thead > tr > th.sorting_asc:after,
.listing-table thead > tr > th.sorting_asc:before,
.listing-table thead > tr > th.sorting_asc_disabled:after,
.listing-table thead > tr > th.sorting_asc_disabled:before,
.listing-table thead > tr > th.sorting_desc:after,
.listing-table thead > tr > th.sorting_desc:before,
.listing-table thead > tr > th.sorting_desc_disabled:after,
.listing-table thead > tr > th.sorting_desc_disabled:before {
  display: block;
  font-size: 0.8em;
  line-height: 9px;
  opacity: 0.125;
  position: absolute;
  right: 10px;
}

.listing-table thead > tr > th.sorting:before,
.listing-table thead > tr > th.sorting_asc:before,
.listing-table thead > tr > th.sorting_asc_disabled:before,
.listing-table thead > tr > th.sorting_desc:before,
.listing-table thead > tr > th.sorting_desc_disabled:before {
  bottom: 50%;
  content: "▲";
  content: "▲"/"";
}

.listing-table thead > tr > th.sorting:after,
.listing-table thead > tr > th.sorting_asc:after,
.listing-table thead > tr > th.sorting_asc_disabled:after,
.listing-table thead > tr > th.sorting_desc:after,
.listing-table thead > tr > th.sorting_desc_disabled:after {
  content: "▼";
  content: "▼"/"";
  top: 50%;
}

.listing-table thead > tr > th.sorting_asc:before,
.listing-table thead > tr > th.sorting_desc:after {
  opacity: 0.6;
}

.listing-table thead > tr > th.sorting_asc_disabled:before,
.listing-table thead > tr > th.sorting_desc_disabled:after {
  display: none;
}

.listing-table thead > tr > th:active {
  outline: none;
}

/*
 * Forms
 */
.form-label {
  font-weight: bolder;
}

.choices {
  margin-bottom: 0.25rem;
}

.invalid-feedback p {
  margin-bottom: 0.25rem;
}

/*
 * Table
 */
.table-responsive {
  overflow-y: visible;
  overflow-x: auto;
}

.listing-table {
  min-width: 800px;
  table-layout: fixed !important;
  width: 100% !important;
}

/* Force all table cells to wrap long content */
.listing-table th,
.listing-table td {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/*
 * QR Code
 */
.qr-container {
  display: block;
  position: relative;
}

.qr-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.qr-icon {
  font-size: 14px;
  color: #6c757d;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  cursor: pointer;
}

.qr-icon:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

/* Constrain column width to fit icon */
.col-uuid {
  width: 40px;
  max-width: 40px;
  min-width: 40px;
}

@media (max-width: 797px) {
  .qr-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .col-uuid {
    width: 28px;
    max-width: 28px;
    min-width: 28px;
  }
}

/*
 * Alerts
 */
.alert p {
  margin-bottom: 5px;
}
