// ============================================
// Form Controls
// ============================================

@use "variables" as *;

// Form Controls
.jbs-label {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.jbs-form-label {
  margin-bottom: 0.5rem;
}

.jbs-form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bs-white, #fff);
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.15s ease-in-out;

  &:focus {
    background-color: var(--bs-white, #fff);
    border-color: rgba(#0d6efd, 0.25);
    outline: 0;
  }
}


// ============================================
// Tables
// ============================================
.jbs-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

@media (max-width: 575.98px) {
  .jbs-table-responsive-sm {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }
}

@media (max-width: 767.98px) {
  .jbs-table-responsive-md {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }
}

@media (max-width: 991.98px) {
  .jbs-table-responsive-lg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }
}

@media (max-width: 1199.98px) {
  .jbs-table-responsive-xl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }
}

@media (max-width: 1399.98px) {
  .jbs-table-responsive-xxl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }
}


.jbs-table {
  width: 100%;
  margin-bottom: 1rem;
  color: $text-dark;
  vertical-align: top;
  border-color: #dee2e6;
  border: none;

  th,
  td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
  }

  thead {
    vertical-align: bottom;
  }

  tbody {
    vertical-align: inherit;
  }
}

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

.jbs-table-bordered {
  border: 1px solid #dee2e6;

  > :not(caption) > * {
    border-width: 1px 0;
  }

  > :not(caption) > * > * {
    border-width: 0 1px;
  }
}

// Badge styles live in jbs-framework/_badges.scss.
