body.modern-sells-page {
  background: #f4f7fb;
  color: #15243a;
}

body.modern-sells-page .content-wrapper {
  min-height: calc(100vh - 50px);
  background:
    radial-gradient(circle at 92% 0, rgba(32, 137, 210, .08), transparent 28%),
    #f4f7fb;
}

body.modern-sells-page .main-footer {
  display: none;
}

.modern-sells-wrapper {
  padding-bottom: 28px;
}

.modern-sells-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 14px;
}

.modern-sells-heading h1 {
  margin: 0;
  color: #10213a;
  font-size: 25px;
  font-weight: 700;
}

.modern-sells-heading p {
  margin: 5px 0 0;
  color: #7a879a;
  font-size: 13px;
}

.modern-sells-heading .breadcrumb {
  position: static;
  margin: 5px 0 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.modern-sells-content {
  padding: 0 24px;
}

.sells-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 13px;
}

.sells-page-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.sells-new-sale {
  border-color: #1189d0;
  background: #1189d0;
  color: #fff;
  box-shadow: 0 5px 12px rgba(17, 137, 208, .18);
}

.sells-new-sale:hover,
.sells-new-sale:focus {
  border-color: #0877b8;
  background: #0877b8;
  color: #fff;
}

.sells-date-range {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #42516a;
}

.payment-filter-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
}

.btnPaymentFilter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #dfe5ed;
  border-radius: 5px;
  background: #fff;
  color: #42516a;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(24, 45, 75, .05);
  transition: .18s ease;
}

.btnPaymentFilter:hover {
  border-color: #9ecceb;
  color: #1189d0;
}

.btnPaymentFilter.active {
  border-color: #168dce;
  background: #168dce;
  color: #fff;
  box-shadow: 0 4px 10px rgba(22, 141, 206, .18);
}

.btnPaymentFilter[data-metric="cash"]:not(.active) i {
  color: #14a861;
}

.btnPaymentFilter[data-metric="card"]:not(.active) i {
  color: #df8900;
}

.btnPaymentFilter[data-metric="voucher"]:not(.active) i {
  color: #6c63d9;
}

.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #e7ecf2;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 2px 8px rgba(25, 47, 76, .04);
}

.sales-summary-card {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 15px 18px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  box-shadow: 0 2px 7px rgba(25, 47, 76, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sales-summary-card:hover,
.sales-summary-card:focus {
  border-color: #cfdce8;
  outline: none;
  box-shadow: 0 7px 18px rgba(25, 47, 76, .09);
  transform: translateY(-1px);
}

.sales-summary-icon {
  display: inline-flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-right: 16px;
  border-radius: 50%;
  font-size: 23px;
}

.sales-summary-card.is-total .sales-summary-icon {
  background: linear-gradient(145deg, #49aada, #087cb9);
  color: #fff;
}

.sales-summary-card.is-cash .sales-summary-icon {
  background: #bdf0c7;
  color: #0a9d51;
}

.sales-summary-card.is-card .sales-summary-icon {
  background: #ffe0a8;
  color: #d98000;
}

.sales-summary-card.is-voucher .sales-summary-icon {
  background: #d9d5ff;
  color: #645bd2;
}

.sales-summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sales-summary-copy small {
  margin-bottom: 3px;
  color: #7e8b9d;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.sales-summary-copy strong {
  overflow: hidden;
  color: #27354a;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-summary-copy em {
  margin-top: 3px;
  color: #8a97a9;
  font-size: 12px;
  font-style: normal;
}

.sells-history-panel {
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 43, 69, .055);
}

.sells-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 13px 18px;
  border-bottom: 1px solid #e7ebf0;
}

.sells-panel-header h2 {
  margin: 0;
  color: #16243a;
  font-size: 17px;
  font-weight: 700;
}

.sells-panel-header p {
  margin: 3px 0 0;
  color: #8995a5;
  font-size: 12px;
}

.sells-record-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 16px;
  background: #edf6fc;
  color: #1785c4;
  font-size: 12px;
  font-weight: 600;
}

.sells-table-wrap {
  padding: 14px 16px 16px;
}

.modern-sells-page .dataTables_wrapper .row:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
}

.modern-sells-page .dataTables_wrapper .row:first-child > div {
  float: none;
  width: auto;
  padding: 0;
}

.modern-sells-page .dataTables_length label,
.modern-sells-page .dataTables_filter label {
  margin: 0;
  color: #758397;
  font-size: 12px;
  font-weight: 500;
}

.modern-sells-page .dataTables_filter input,
.modern-sells-page .dataTables_length select {
  height: 34px;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  background: #fff;
  color: #33435a;
  box-shadow: none;
}

.modern-sells-page .dataTables_filter input {
  min-width: 230px;
  margin-left: 8px;
}

.modern-sales-table {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #e4e9ef !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.modern-sales-table thead th {
  padding: 11px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe5eb !important;
  background: #f6f8fb;
  color: #26354a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.modern-sales-table tbody td {
  padding: 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f3 !important;
  color: #4a586c;
  font-size: 12px;
  vertical-align: middle !important;
}

.modern-sales-table tbody tr:hover td {
  background: #f8fbfe;
}

.sale-code,
.sale-seller,
.sale-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.sale-code {
  color: #087bbd;
  font-weight: 700;
}

.sale-code i,
.sale-date i,
.sale-seller i {
  color: #9aa6b5;
}

.sale-total {
  color: #15243a;
  white-space: nowrap;
}

.sells-payment-cell {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sells-payment-cell small {
  color: #8c98a7;
  font-size: 10px;
  white-space: nowrap;
}

.sells-payment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sells-payment-tag.is-cash {
  background: #e3f8ea;
  color: #07964c;
}

.sells-payment-tag.is-card {
  background: #fff0d4;
  color: #cf7900;
}

.sells-payment-tag.is-voucher {
  background: #eeebff;
  color: #6258ce;
}

.sells-payment-tag.is-other {
  background: #edf1f5;
  color: #667386;
}

.sells-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sells-row-actions a,
.sells-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #fff;
  color: #5e6e82;
}

.sells-row-actions .btnXml {
  border-color: #a8ddbe;
  color: #0a9b50;
}

.sells-row-actions .btnPrintBill {
  border-color: #a9d5ef;
  color: #1188ca;
}

.sells-row-actions .btnEditSale {
  border-color: #f5cf88;
  color: #d78600;
}

.sells-row-actions .btnDeleteSale {
  border-color: #f2b3b3;
  color: #dc4242;
}

.sells-row-actions a:hover,
.sells-row-actions button:hover {
  background: #f5f8fb;
}

.modern-sells-page .dataTables_info {
  padding-top: 13px;
  color: #8190a3;
  font-size: 11px;
}

.modern-sells-page .pagination > li > a {
  min-width: 32px;
  border-color: #dfe5ec;
  color: #4d5e74;
  text-align: center;
}

.modern-sells-page .pagination > .active > a,
.modern-sells-page .pagination > .active > a:hover {
  border-color: #168dce;
  background: #168dce;
}

.sells-xml-success {
  position: relative;
  z-index: 20;
  margin: 0;
  border-radius: 0;
}

@media (max-width: 1100px) {
  .sales-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .modern-sells-heading {
    display: block;
    padding: 18px 15px 10px;
  }

  .modern-sells-heading .breadcrumb {
    margin-top: 9px;
  }

  .modern-sells-content {
    padding: 0 15px;
  }

  .sells-page-actions {
    justify-content: stretch;
  }

  .sells-page-actions .btn {
    flex: 1;
  }

  .payment-filter-box {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .btnPaymentFilter {
    flex: 0 0 auto;
  }

  .sales-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sales-summary-card {
    min-height: 80px;
  }

  .sells-panel-header {
    align-items: flex-start;
    gap: 10px;
  }

  .sells-record-count {
    white-space: nowrap;
  }

  .sells-table-wrap {
    padding: 10px;
  }

  .modern-sells-page .dataTables_wrapper .row:first-child {
    display: block;
  }

  .modern-sells-page .dataTables_wrapper .row:first-child > div {
    margin-bottom: 8px;
  }

  .modern-sells-page .dataTables_filter input {
    width: calc(100% - 55px);
    min-width: 0;
  }
}
