.welcome-box .ms-3 {
  margin-left: 0 !important;
  margin-right: 0.7rem !important;
}

.welcome-box .gap-xxl-5 {
  gap: 1.5rem !important;
}

.welcome-box .border-bottom {
  border-color: #757dff !important;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.welcome-box.style-two {
  background: linear-gradient(81deg, #605dff 3.39%, #9747ff 93.3%);
}

.welcome-box.style-two .welcome-2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 230px;
}

.welcome-box.style-two p {
  color: #f6f7f9 !important;
}

.welcome-box .welcome-status-item i {
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 7px;
  background-color: #ecf0ff;
  color: #605dff;
  position: relative;
  top: -8px;
  font-size: 24px;
}

.welcome-box .welcome-status-item i.icon-bg {
  background-color: #ffe8d4;
  color: #fd5812;
}

.welcome-box .welcome-status-item.style-two i {
  background-color: #ffc8c0;
  color: #ee3e08;
}

.welcome-box .welcome-status-item.style-two i.icon-bg.two {
  background-color: #d8ffc8;
  color: #25b003;
}

.welcome-box .stats-box .count {
  background-color: #ffe1dd;
  color: #fd5812;
  border: 1px solid #ffcea9;
  display: inline-block;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  width: 52px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  margin-left: 7px;
}

.welcome-box .stats-box .count.up {
  background-color: #d8ffc8;
  border-color: #82fc5a;
  color: #1e8308;
}

.welcome-box .stats-box .stats-list li {
  margin-bottom: 6px;
}

.welcome-box .stats-box .stats-list li .title {
  position: relative;
  padding-left: 30px;
}

.welcome-box .stats-box .stats-list li .title::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 20px;
  height: 5px;
  background-color: #605dff;
  border-radius: 50px;
}

.welcome-box .stats-box .stats-list li:last-child {
  margin-bottom: 0;
}

.welcome-box .stats-box .stats-list li:last-child .title::before {
  background-color: #c2cdff;
}

.welcome-box .chart-position {
  top: -5px;
  right: 15px;
  max-width: 120px;
  position: absolute;
}

.welcome-box .congratulations {
  bottom: 12px;
  right: 7px;
}

.welcome-box .welcome-img {
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .welcome-box .border-bottom {
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .welcome-box .stats-box.style-three .p-4 {
    padding: 10px !important;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .welcome-box .stats-box.style-three .p-4 {
    padding: 10px !important;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .welcome-box .stats-box.style-three .p-4 {
    padding: 10px !important;
  }

  .welcome-box.style-two .welcome-2 {
    width: 185px;
  }
}

.pos-card {
  position: relative;
  border: 0;
  color: #000;
  overflow: hidden;
  min-height: 140px;
  transition: all 0.25s ease;
}

.pos-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.pos-card .card-body {
  padding: 1.9rem 1.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-card small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.pos-card h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 4px 0;
  letter-spacing: 0.5px;
}

.pos-card .icon {
  width: 68px;
  height: 68px;
  line-height: 68px;
  text-align: center;
  font-size: 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.bg-sales {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bg-purchase {
  background: linear-gradient(135deg, #fd7e14 0%, #ff9f43 100%);
}

.bg-clients {
  background: linear-gradient(135deg, #0d6efd 0%, #4dabf7 100%);
}

.bg-suppliers {
  background: linear-gradient(135deg, #6f42c1 0%, #9775fa 100%);
}

.bg-profit {
  background: linear-gradient(135deg, #198754 0%, #51cf66 100%);
}

[dir="rtl"] .pos-card .card-body {
  text-align: right;
}

[dir="rtl"] .pos-card h3 {
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  .pos-card {
    min-height: 130px;
  }

  .pos-card h3 {
    font-size: 2.05rem;
  }

  .pos-card .icon {
    width: 62px;
    height: 62px;
    line-height: 62px;
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .pos-card {
    min-height: 120px;
  }

  .pos-card .card-body {
    padding: 1.4rem;
  }

  .pos-card h3 {
    font-size: 1.85rem;
  }

  .pos-card small {
    font-size: 0.95rem;
  }

  .pos-card .icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 26px;
  }
}

/* .dt-table .form-control {
  width: auto !important;
} */

.select2-container--disabled {
  pointer-events: none !important;
}

.error-bg::before,
.error-bg::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(2px);
}

.error-bg::before {
  top: -80px;
  right: -80px;
  background: linear-gradient(135deg, #ff5757, #ff8a8a);
}

.error-bg::after {
  bottom: -80px;
  left: -80px;
  background: linear-gradient(135deg, #3a86ff, #6ea8ff);
}

.pos-product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border-radius: 12px;
  background-color: #f9f9f9;
  height: 200px;
}

.pos-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pos-product-card h5 {
  font-size: 1rem;
}

.pos-product-card small {
  font-size: 0.8rem;
}

.pos {
  --modal-inset: 24px;
}

.pos .modal-full {
  width: calc(100vw - (var(--modal-inset) * 2));
  max-width: none;
  height: calc(100vh - (var(--modal-inset) * 2));
  margin: var(--modal-inset);
}

.pos .modal-full .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0px;
}

.pos .modal-full .modal-header,
.pos .modal-full .modal-footer {
  border-radius: 0;
}

.pos .modal-full .modal-body {
  overflow-y: auto;
}

@media (max-width: 575.98px) {
  .pos {
    --modal-inset: 12px;
  }

  .pos .modal-full-sm-down {
    width: calc(100vw - (var(--modal-inset) * 2));
    max-width: none;
    height: calc(100vh - (var(--modal-inset) * 2));
    margin: var(--modal-inset);
  }

  .pos .modal-full-sm-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 6px;
  }

  .pos .modal-full-sm-down .modal-header,
  .pos .modal-full-sm-down .modal-footer {
    border-radius: 0;
  }

  .pos .modal-full-sm-down .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 767.98px) {
  .pos .modal-full-md-down {
    width: calc(100vw - (var(--modal-inset) * 2));
    max-width: none;
    height: calc(100vh - (var(--modal-inset) * 2));
    margin: var(--modal-inset);
  }

  .pos .modal-full-md-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 6px;
  }

  .pos .modal-full-md-down .modal-header,
  .pos .modal-full-md-down .modal-footer {
    border-radius: 0;
  }

  .pos .modal-full-md-down .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 991.98px) {
  .pos .modal-full-lg-down {
    width: calc(100vw - (var(--modal-inset) * 2));
    max-width: none;
    height: calc(100vh - (var(--modal-inset) * 2));
    margin: var(--modal-inset);
  }

  .pos .modal-full-lg-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 6px;
  }

  .pos .modal-full-lg-down .modal-header,
  .pos .modal-full-lg-down .modal-footer {
    border-radius: 0;
  }

  .pos .modal-full-lg-down .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 1199.98px) {
  .pos .modal-full-xl-down {
    width: calc(100vw - (var(--modal-inset) * 2));
    max-width: none;
    height: calc(100vh - (var(--modal-inset) * 2));
    margin: var(--modal-inset);
  }

  .pos .modal-full-xl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 6px;
  }

  .pos .modal-full-xl-down .modal-header,
  .pos .modal-full-xl-down .modal-footer {
    border-radius: 0;
  }

  .pos .modal-full-xl-down .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 1399.98px) {
  .pos .modal-full-xxl-down {
    width: calc(100vw - (var(--modal-inset) * 2));
    max-width: none;
    height: calc(100vh - (var(--modal-inset) * 2));
    margin: var(--modal-inset);
  }

  .pos .modal-full-xxl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 6px;
  }

  .pos .modal-full-xxl-down .modal-header,
  .pos .modal-full-xxl-down .modal-footer {
    border-radius: 0;
  }

  .pos .modal-full-xxl-down .modal-body {
    overflow-y: auto;
  }
}