.table {
  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.table thead {
  background: #f8f9fa;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(0,0,0,0.03);
}

.table-hover tbody tr:hover {
  background: rgba(0,0,0,0.06);
}

.table-responsive {
  overflow-x: auto;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1 0 0%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-6 {
  width: 50%;
  padding-right:15px;
  padding-left:15px;
}

.col-4 {
  width: 33.3333%;
  padding-right:15px;
  padding-left:15px;
}

.col-3 {
  width: 25%;
  padding-right:15px;
  padding-left:15px;
}

.col-12 {
  width: 100%;
  padding-right:15px;
  padding-left:15px;
}

@media(max-width:768px){

  .col,
  .col-6,
  .col-4,
  .col-3 {
    width:100%;
  }
}


.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
}

.form-control:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.form-label {
  display:block;
  margin-bottom:6px;
  font-weight:600;
}

.btn {
  display:inline-block;
  padding:10px 18px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  text-decoration:none;
  transition:0.3s;
}

.btn-primary {
  background: var(--primary);
  color:white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal.show {
  display:flex;
}

.modal-content {
  background:white;
  padding:25px;
  border-radius:12px;
  width:min(600px,90%);
}

/* =========================================
   EXTRA TABLE STYLES
========================================= */

.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
}

/* TABLE STATUS COLORS */

.table-danger {
  background: #f8d7da;
  color: #842029;
}

.table-warning {
  background: #fff3cd;
  color: #664d03;
}

/* =========================================
   BUTTONS
========================================= */

.btn-success {
  background: #198754;
  color: #fff;
}

.btn-success:hover {
  background: #157347;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-secondary:hover {
  background: #5c636a;
}

/* =========================================
   PAGINATION
========================================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  background: #fff;
  color: #0d6efd;
  transition: 0.2s;
}

.page-link:hover {
  background: #e9ecef;
}

.page-item.active .page-link {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* =========================================
   INPUT GROUP
========================================= */

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  flex: 1 1 auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* =========================================
   ALERT HELPERS
========================================= */

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background: #f8d7da;
  color: #842029;
}

.alert-warning {
  background: #fff3cd;
  color: #664d03;
}

.btn-sm{
  padding:6px 12px;
  font-size:14px;
}


/* =========================================
CARDS
========================================= */

.card{
background:#fff;
border:1px solid #dee2e6;
border-radius:8px;
overflow:hidden;
}

.card-body{
padding:12px 14px;
}

/* =========================================
BORDER COLORS
========================================= */

.border-success{
border-color:#198754 !important;
}

.border-danger{
border-color:#dc3545 !important;
}

.border-primary{
border-color:#0d6efd !important;
}

.border-warning{
border-color:#ffc107 !important;
}

.border-info{
border-color:#0dcaf0 !important;
}

.border-secondary{
border-color:#6c757d !important;
}

.border-dark{
border-color:#212529 !important;
}

/* =========================================
TEXT COLORS
========================================= */

.text-success{
color:#198754 !important;
}

.text-danger{
color:#dc3545 !important;
}

.text-primary{
color:#0d6efd !important;
}

.text-warning{
color:#ffc107 !important;
}

.text-info{
color:#0dcaf0 !important;
}

.text-secondary{
color:#6c757d !important;
}

.text-dark{
color:#212529 !important;
}

/* =========================================
BADGES
========================================= */

.badge{
display:inline-block;
padding:6px 10px;
border-radius:6px;
font-size:12px;
font-weight:600;
}

.bg-success{
background:#198754;
color:#fff;
}

.bg-danger{
background:#dc3545;
color:#fff;
}

.bg-warning{
background:#ffc107;
color:#212529;
}

.bg-primary{
background:#0d6efd;
color:#fff;
}

.bg-secondary{
background:#6c757d;
color:#fff;
}
