// ============================================
// 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;
  }
}

// ============================================
// Badges
// ============================================

.jbs-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: $text-white;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.jbs-bg-warning{
    color: rgba(36,64,52,.9);
    font-weight: 500;
    &::before{
        content: '';
        width: 8px;
        height: 8px;
        background-color: #ffc107;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
        position: relative;
        top: 2px;
    }
}
.jbs-bg-approved, .jbs-bg-success{
    color: rgba(36,64,52,.9);
    font-weight: 500;
    &::before{
        content: '';
        width: 8px;
        height: 8px;
        background-color: #198754;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
        position: relative;
        top: 2px;
    }
}
.jbs-bg-rejected, .jbs-bg-danger{
    color: rgba(36,64,52,.9);
    font-weight: 500;
    &::before{
        content: '';
        width: 8px;
        height: 8px;
        background-color: #dc3545;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
        position: relative;
        top: 2px;
    }
   
}


.jbs-badge-primary {
  background-color: #0d6efd;
}

.jbs-badge-secondary {
  background-color: #6c757d;
}

.jbs-badge-success {
  background-color: #198754;
}

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

.jbs-badge-warning {
  background-color: #ffc107;
  color: #000;
}

.jbs-badge-info {
  background-color: #0dcaf0;
  color: #000;
}

.jbs-badge-light {
  background-color: #f8f9fa;
  color: #000;
}

.jbs-badge-dark {
  background-color: $text-dark;
}
