/* PTP_EMPLOYEE_EARNINGS_V1 */
.ptp-earnings-panel {
  margin-top: 20px;
  overflow: hidden;
}

.ptp-earnings-panel.hidden {
  display: none !important;
}

.ptp-earnings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.ptp-earnings-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ptp-earnings-title-row h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
}

.ptp-earnings-title-row span {
  border-radius: 999px;
  background: #eef4ff;
  padding: 5px 9px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.ptp-earnings-head p {
  margin: 6px 0 0;
  color: #8190a8;
  font-size: 12px;
}

.ptp-earnings-head button {
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ptp-earnings-head button:disabled {
  cursor: wait;
  opacity: .65;
}

.ptp-earnings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 20px;
}

.ptp-earnings-summary > div {
  min-width: 0;
  border: 1px solid #e5ebf4;
  border-radius: 13px;
  background: #f8fafc;
  padding: 14px;
}

.ptp-earnings-summary span {
  display: block;
  color: #8190a8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.ptp-earnings-summary strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 17px;
}

.ptp-earnings-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ptp-earnings-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2563eb;
  font-weight: 900;
}

.ptp-earnings-person strong,
.ptp-earnings-person small,
.ptp-earnings-money-line {
  display: block;
}

.ptp-earnings-person small {
  margin-top: 2px;
  color: #8190a8;
}

.ptp-earnings-money-line {
  white-space: nowrap;
  color: #334155;
  font-weight: 800;
}

.ptp-earnings-positive {
  color: #047857;
}

.ptp-earnings-cost {
  color: #c2410c;
}

.ptp-earnings-profit {
  color: #1d4ed8;
}

.ptp-earnings-table {
  min-width: 980px;
}

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

.ptp-earnings-error {
  margin: 0 22px 18px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: #fff1f2;
  padding: 11px 13px;
  color: #b91c1c;
  font-size: 12px;
}

.ptp-earnings-error.hidden {
  display: none !important;
}

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

@media (max-width: 650px) {
  .ptp-earnings-head {
    flex-direction: column;
  }

  .ptp-earnings-head button {
    width: 100%;
  }

  .ptp-earnings-summary {
    grid-template-columns: 1fr;
  }
}
