.form-group input.continue-code {
  width: 150px;
  font-size: 2em;
  margin: auto;
}

.top-bar {
  background-color: #007BFF; 
  padding: 10px;
  color: #fff;
  margin-bottom: 5px;
}

.top-bar > div {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 5px;
  max-width: var(--max-width-xl);
  width: calc(100% - var(--padding-x) * 2);
  margin: auto;
  font-size: 1.1em;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}


#clock-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../img/clock-icon.png') no-repeat center center;
  background-size: contain;
  position: relative;
  top: 2px;
  margin-right: 4px;
}

#clock-icon span {
  position: absolute;
  left: -5000px;
}

#phone-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../img/phone-icon.png') no-repeat center center;
  background-size: contain;
  position: relative;
  top: 2px;
  margin-right: 4px;
}

#phone-icon span {
  position: absolute;
  left: -5000px;
}

#facebook-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../img/facebook-icon.png') no-repeat center center;
  background-size: contain;
  position: relative;
  top: 2px;
  margin-right: 4px;
}

#facebook-icon span {
  position: absolute;
  left: -5000px;
}

#linkedin-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../img/linkedin-icon.png') no-repeat center center;
  background-size: contain;
  position: relative;
  top: 2px;
  margin-right: 4px;
}

#linkedin-icon span {
  position: absolute; 
  left: -5000px;
}
/* Minimalist Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  word-wrap: break-word;
  max-width: 200px; /* Prevents cells from getting too wide */
}

.table th {
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
}

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-decoration: none;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

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

.badge-danger {
  color: #fff;
  background-color: #dc3545;
}

.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.col-2.nav-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vendor-name {
  font-size: 0.8rem;
  display: block;
  text-align: center;
}

.subagent-logos > div:nth-child(2) {
  text-align: right;
}

.subagent-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
  max-width: 200px;
}

.subagent-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mh-2 {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

/* Make table responsive */
@media screen and (max-width: 768px) {
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }

  .header > div  {
   text-align: center;
  }


  .nav-buttons > p > a {
    min-height: 25px;
  }

  .nav-buttons > p:nth-child(2) {
    margin-bottom:0;
  }

  .nav-buttons > p:nth-child(2)> a{
    padding-top: 16px;
  }
}



@media screen and (max-width: 580px) {

  .top-bar > div {
    grid-template-columns: 1fr;
  }

  .top-bar > div > div {
    text-align: center;
  }

  .form-group.group-sm {
    width: 90%;
  }

  .col-2 > p:nth-child(1) {
    margin-bottom: 10px;
  }

  /* Override the default col-2 behavior for name fields */
  .name-fields {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Override the mobile single column for nav buttons */
  .col-2.nav-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .col-2.nav-buttons > p {
    margin: 0;
  }

  .subagent-logos > div {
    text-align: center;
  }

  .subagent-logos > div > img {
    max-height: 100px;
  }
}

.flex-grow-1 {
  flex: 1 1 auto;
}

.ml-1 {
  margin-left: 1rem !important;
}

.qr-code-container {
  text-align: center;
}

.qr-code-image {
  max-width: 120px;
  height: auto;
}

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