.page-title-box {
  margin-top: 10px;
  margin-bottom: 30px;
}

.page-title-box .page-title-right {
  float: right;
  margin-top: 10px;
}

.view_form .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.col-form-label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

/*
.card-title {
    font-weight: 600;
    color: #012970;
    padding: 0px;
    margin: 0px;
}
*/
.filter {
  position: absolute;
  right: 15px;
  top: 15px;
}

.bi-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* loading bar start */
#loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #007bff;
  /* Bootstrap Blue */
  z-index: 9999;
  transition: none;
  display: none;
}

@keyframes loading-animation {
  0% {
    width: 0%;
    left: 0;
  }

  50% {
    width: 50%;
    left: 25%;
  }

  100% {
    width: 0%;
    left: 100%;
  }
}

.loading {
  display: block !important;
  animation: loading-animation 1.5s infinite linear;
}

/* loading bar end */
/*
.dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
}
*/

.sales-card .card-body {
  padding: 20px;
}

.form-switch {
  padding-top: 5px;
}

.min-w-fit {
  min-width: fit-content !important;
}

.page-wrapper {
  padding: 20px;
}

.pagetitle {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.pagetitle h1 {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.styled-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: none;
  overflow: hidden;
}

.styled-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 25px;
  border-bottom: none;
}

.styled-card .card-header h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.card-meta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
}

.btn-action i {
  font-size: 16px;
}

.styled-card .card-body {
  padding: 25px;
}

.data-table {
  margin-top: 10px;
  min-width: 700px;
  margin-bottom: 0;
}

.data-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: #f0f4ff;
  transform: translateX(2px);
}

.data-table tbody td {
  padding: 14px 15px;
  vertical-align: middle;
  color: #495057;
  font-size: 14px;
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: #667eea;
}

.table-responsive {
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

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

.badge {
  padding: 6px 12px;
  font-weight: 500;
  font-size: 13px;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 10px;
  }

  .pagetitle {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .pagetitle h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .styled-card {
    border-radius: 6px;
  }

  .styled-card .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
    padding: 15px;
  }

  .styled-card .card-header h1 {
    font-size: 18px;
  }

  .card-meta-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
  }

  .styled-card .card-body {
    padding: 12px;
  }

  .table-responsive {
    margin: 0 -12px;
    width: calc(100% + 24px);
    border-radius: 0;
    overflow-x: auto;
  }

  .data-table {
    font-size: 12px;
    min-width: 600px;
  }

  .data-table thead th {
    padding: 10px 6px;
    font-size: 11px;
  }

  .data-table tbody tr:hover {
    transform: none;
  }

  .data-table tbody td {
    padding: 10px 6px;
    font-size: 13px;
  }

  .badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .btn-action {
    padding: 5px 12px;
    font-size: 13px;
  }

  .table-responsive {
    margin: 0 -12px;
    width: calc(100% + 24px);
    border-radius: 0;
  }
}
