.overflow-scroll {
    overflow: scroll;
}

/* CSV Upload Styles */
.form-check-container {
    max-height: 300px;
    overflow-y: auto;
}

.form-check {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.form-check input[type="radio"]:checked + label {
    color: #007bff;
    font-weight: 500;
}

.upload-progress {
    border-radius: 0.25rem;
    height: 8px;
}

.alert-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

#csvPreview .table {
    font-size: 0.875rem;
}

#csvPreview .table td,
#csvPreview .table th {
    padding: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.no-outline {
    outline: none !important;
}

.table-header-sticky {
    position: sticky;
    top: 0;
    background: white;
}

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

/* These "info-" classes are for displaying an info icon that can be moused over
 * to pop up a div with information. info-icon-container should be the outermost
 * div, info-icon should hold the icon itself, and info-tooltip should be the
 * pop-up. Example:

   <div class="info-icon-container">
       <span class="info-icon">ⓘ</span>
       <div class="info-tooltip">
           <p>Here's the info that pops up!</p>
       </div>
   </div>

 */
.info-icon-container {
  position: relative;
  display: flex;
  align-items: center;
}

.info-icon {
  font-size: 1rem;
  color: #666;
  border: 0px;
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.info-tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 1rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -150px; /* Use half of the width to center */
  opacity: 0;
  transition: opacity 0.3s, visibility 0s 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-size: 80%;
}

.info-icon-container:hover .info-tooltip {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* These "antenna-card-" classes are for displaying objects in a grid of cards,
 * which can be a nicer interface than a table if each object has a lot of fields
 * and/or nested fields. The "antenna-" prefix is just to avoid clobbering other
 * imported styles, where "card" might be a common name. antenna-card-container
 * goes on the outside, and each object goes in a card div. antenna-card-header is
 * for styling the title of each card. Example:

   <div class="antenna-card-container">
       {% for ticket in tickets %}
       <div class="antenna-card">
           <div class="antenna-card-header">
               <b>{{ ticket.title }}</b>
           </div>
           <p>{{ ticket.description }}</p>
       </div>
       {% endfor %}
   </div>

 */

.antenna-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.antenna-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.6rem;
  background-color: #fafafa;
}

.antenna-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.antenna-card.deal-previous, .antenna-card.deal-disabled {
    background-color: #e9ecef; /* light grey */
}
