/* PTP_REPORTS_V1 */
.ptp-report-page {
  padding: 28px;
}

.ptp-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ptp-report-head h1 {
  margin: 0;
  color: #172033;
  font-size: 28px;
}

.ptp-report-head p {
  margin: 6px 0 0;
  color: #70809d;
}

.ptp-report-head-actions {
  display: flex;
  gap: 10px;
}

.ptp-report-primary,
.ptp-report-secondary {
  min-height: 43px;
  border-radius: 11px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ptp-report-primary {
  border: 0;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 9px 22px rgba(37, 99, 235, .18);
}

.ptp-report-secondary {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
}

.ptp-report-primary:disabled,
.ptp-report-secondary:disabled {
  cursor: wait;
  opacity: .65;
}

.ptp-report-filters {
  display: grid;
  grid-template-columns: 190px 190px 220px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 15px;
}

.ptp-report-filters label {
  display: block;
  margin-bottom: 6px;
  color: #52617a;
  font-size: 12px;
  font-weight: 800;
}

.ptp-report-filters input,
.ptp-report-filters select {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: #172033;
  outline: none;
}

.ptp-report-filters input:focus,
.ptp-report-filters select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.ptp-report-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ptp-report-stat {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 17px;
}

.ptp-report-stat span {
  display: block;
  color: #7c8aa4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ptp-report-stat strong {
  display: block;
  margin-top: 9px;
  color: #172033;
  font-size: 25px;
}

.ptp-report-stat small {
  display: block;
  margin-top: 4px;
  color: #8190a8;
}

.ptp-report-panel {
  overflow: hidden;
  margin-bottom: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
}

.ptp-report-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f7;
}

.ptp-report-panel-head h2 {
  margin: 0;
  color: #172033;
  font-size: 17px;
}

.ptp-report-panel-head p {
  margin: 4px 0 0;
  color: #8190a8;
  font-size: 12px;
}

.ptp-report-panel-head > span {
  color: #70809d;
  font-size: 12px;
  font-weight: 750;
}

.ptp-report-table-wrap {
  overflow-x: auto;
}

.ptp-report-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.ptp-report-detail-table {
  min-width: 1200px;
}

.ptp-report-table th,
.ptp-report-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: middle;
}

.ptp-report-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}

.ptp-report-table td {
  color: #334155;
  font-size: 13px;
}

.ptp-report-service {
  font-weight: 850;
}

.ptp-report-money {
  white-space: nowrap;
  font-weight: 750;
}

.ptp-report-received {
  color: #047857;
}

.ptp-report-pending {
  color: #b45309;
}

.ptp-report-status {
  display: inline-flex;
  border-radius: 999px;
  background: #eef4ff;
  padding: 5px 9px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.ptp-report-status.completed {
  background: #ecfdf5;
  color: #047857;
}

.ptp-report-status.cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.ptp-report-empty {
  padding: 38px !important;
  color: #8190a8 !important;
  text-align: center !important;
}

.ptp-report-error {
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  padding: 12px 14px;
  color: #b91c1c;
  font-size: 13px;
}

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

  .ptp-report-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .ptp-report-page {
    padding: 17px;
  }

  .ptp-report-head,
  .ptp-report-head-actions {
    flex-direction: column;
  }

  .ptp-report-head-actions,
  .ptp-report-primary,
  .ptp-report-secondary {
    width: 100%;
  }

  .ptp-report-filters,
  .ptp-report-stats {
    grid-template-columns: 1fr;
  }
}