/********************
    Check Box Code
*********************/
.content {
  background-color: #FFFFFF;
  display: flex;
  justify-content: center;
  padding: 2rem;
  width: 400px;
  }

  .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  }

  .switch input {
  opacity: 0;
  width: 0;
  height: 0;
  }

  .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6E6E6E;
  transition: 0.4s;
  }

  .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  }

  input:checked + .slider {
  background-color: #1849AB;
  }

  input:focus + .slider {
  box-shadow: 0 0 0 4px rgba(21, 156, 228, 0.7);
  outline: none;
  }

  input:checked + .slider:before {
  transform: translateX(26px);
  }

  .slider.round {
  border-radius: 34px;
  }

  .slider.round:before {
  border-radius: 50%;
  }

/********************
Check Box Code End
*********************/
.new-badge{
cursor: pointer;
}


/***************************** URDU LANGUAGE SETTINGS ***********************************/

@font-face {
font-family: 'jameel noori nastaleeq';
src: url("../fonts/fonts/urdu-font/UrdType.ttf");
}
*{
/* font-family: 'jameel noori nastaleeq';  */
font-size: 1rem;
}
td,th,label,option, button{
font-size: 1rem !important;
}
td, th, label, li, a, i, p, h1, h2, h3, h4, h5, h6, button{
text-transform: capitalize;
}
/* .dataTables_length{
text-align: right;
}
.dataTables_filter{
text-align: left !important;
}
.dataTables_info{
text-align: right;
} */
/* .card-header{
flex-direction: row-reverse;
} */

.select2{
width:100% !important;
}
.report-buttons .btn{
font-size: 20px;
}
.table td{
font-size: 12px !important;
}
.purchase-product-details *{
font-size: 10px !important;
}
.hidden{
  display: none;
}
.gap-1{
  gap: 5px;
}
.gap-2{
  gap: 10px;
}
.gap-3{
  gap: 15px;
}
.gap-4{
  gap: 20px;
}
.gap-5{
  gap: 25px;
}
#customer-search-list{
  max-height: 400px !important;
  overflow-y: auto;
}

.dashboard-overview {
  margin-top: 0.5rem;
}

.dashboard-overview.is-collapsed {
  display: none;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.dashboard-hero h3,
.dashboard-panel__header h4 {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.dashboard-status-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.status-badge--info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-badge--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.dashboard-kpi-grid {
  margin-bottom: 0;
}

.dashboard-kpi {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 1rem 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
}

.dashboard-kpi::before {
  content: "";
  position: absolute;
  inset: auto -25% -35% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  opacity: 0.12;
}

.dashboard-kpi--blue::before { background: #2563eb; }
.dashboard-kpi--green::before { background: #10b981; }
.dashboard-kpi--violet::before { background: #8b5cf6; }
.dashboard-kpi--amber::before { background: #f59e0b; }
.dashboard-kpi--teal::before { background: #14b8a6; }
.dashboard-kpi--rose::before { background: #f43f5e; }

.dashboard-kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  box-shadow: 0 12px 18px rgba(37, 99, 235, 0.18);
}

.dashboard-kpi--green .dashboard-kpi__icon { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.dashboard-kpi--violet .dashboard-kpi__icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.dashboard-kpi--amber .dashboard-kpi__icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.dashboard-kpi--teal .dashboard-kpi__icon { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.dashboard-kpi--rose .dashboard-kpi__icon { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }

.dashboard-kpi p {
  margin: 0 0 0.45rem;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-kpi h4 {
  margin: 0;
  font-size: clamp(1.2rem, 1.1rem + 0.7vw, 1.8rem);
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-kpi__trend {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-kpi__trend--up {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.dashboard-kpi__trend--down {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.dashboard-panels {
  margin-top: 0.2rem;
}

.dashboard-panel {
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  height: 200px;
  padding-top: 0.8rem;
  padding-bottom: 1.9rem;
}

.chart-bar {
  position: relative;
  flex: 1;
  min-height: 36px;
  background: linear-gradient(180deg, rgba(87, 156, 255, 0.88) 0%, rgba(39, 99, 235, 0.78) 100%);
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 -8px 18px rgba(15, 23, 42, 0.08);
}

.chart-bar:nth-child(odd) {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.9) 0%, rgba(13, 148, 136, 0.8) 100%);
}

.chart-bar span {
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.mini-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mini-stat span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-stat strong {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.mini-stat em {
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
}

.page-heading {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.06));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  padding: 1.1rem 1.2rem;
}

.page-heading p {
  margin: 0 0 0.25rem;
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-heading h4 {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.premium-list-card {
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.btn-compact {
  padding: 0.62rem 1rem;
  min-width: 140px;
}

.table-action-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.action-dropdown .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.45rem;
}

.action-dropdown .dropdown-item {
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  color: #334155;
}

.action-dropdown .dropdown-item:hover {
  background: rgba(37, 99, 235, 0.06);
}

.action-menu-button {
  width: 38px;
  height: 38px;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-card .table {
  margin-bottom: 0;
}

.list-card .table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-width: 1px !important;
}

.list-card .table tbody tr {
  transition: background 0.2s ease;
}

.list-card .table tbody tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

.list-card .table td,
.list-card .table th {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  vertical-align: middle;
}

.dashboard-toolbar {
  margin-top: 0.5rem;
}

.dashboard-filter-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 1rem 1rem 0.25rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-filter-panel .form-group {
  margin-bottom: 1rem;
}

.dashboard-filter-panel label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.dashboard-submit-btn {
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 1rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.dashboard-actions .btn {
  min-width: 150px;
  padding: 0.72rem 1rem;
}

.btn-outline-primary {
  border: 1px solid rgba(37, 99, 235, 0.38);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.04);
}

.btn-outline-primary:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

#customer-search-list {
  max-height: 400px !important;
  overflow-y: auto;
}

.card-body form:not(.form-inline) {
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.96));
}

.card-body form .form-group {
  margin-bottom: 1.1rem;
}

.card-body form label {
  display: inline-block;
  color: #334155;
  font-size: 0.82rem !important;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.card-body form label .text-danger {
  margin-left: 0.15rem;
}

.card-body form .form-control,
.card-body form .custom-select,
.card-body form .select2-container .select2-selection {
  color: #1e293b;
  background-color: #fff;
  border: 1px solid #dbe3ee !important;
  border-radius: 11px !important;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card-body form textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.card-body form .form-control:hover,
.card-body form .custom-select:hover {
  border-color: #aabbd0 !important;
}

.card-body form .form-control:focus,
.card-body form .custom-select:focus,
.card-body form .select2-container--focus .select2-selection,
.card-body form .select2-container--open .select2-selection {
  border-color: #0f9b8e !important;
  box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.13) !important;
  outline: 0;
}

.card-body form input[type="file"].form-control {
  height: auto;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.card-body form input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 700;
}

.card-body form .select2-container {
  width: 100% !important;
}

.card-body form .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 44px;
}

.card-body form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding-left: 0;
  color: #1e293b;
}

.card-body form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 0.35rem;
}

.card-body form .btn {
  min-height: 40px;
}

.card-body form .form-group.col-12:last-child:has(> .btn-block) {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.card-body form .form-group.col-12:last-child:has(> .btn-block) .btn-block {
  width: auto;
  min-width: 150px;
  padding: 0.7rem 1.2rem;
}

.card-body form .individual-item {
  margin: 0 0 1rem;
  padding: 1rem 0.85rem 0.1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.card-body form .vendor-product-codes {
  padding: 0 0.9rem 0.5rem;
}

.card-body form .alert {
  border-radius: 12px;
}

.card-body form .is-invalid,
.card-body form .form-control:invalid:focus {
  border-color: #ef4444 !important;
}

.card-body form .invalid-feedback,
.card-body form .text-danger {
  font-size: 0.78rem;
}

.select2-dropdown {
  border: 1px solid #dbe3ee;
  border-radius: 0 0 11px 11px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.select2-results__option {
  padding: 0.6rem 0.8rem;
}

@media (max-width: 767.98px) {
    .dashboard-hero {
      flex-direction: column;
      align-items: flex-start;
    }

    .dashboard-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .dashboard-actions .btn {
      width: 100%;
    }

    .card-body form:not(.form-inline) {
      padding: 0.8rem;
    }

    .card-body form .form-group.col-12:last-child:has(> .btn-block) .btn-block {
      width: 100%;
    }
}
