/* PTP_RESTORE_BIN_V1 */
.ptp-restore-page {
  padding: 28px;
}

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

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

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

.ptp-restore-refresh {
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  padding: 12px 17px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(37, 99, 235, .20);
}

.ptp-restore-refresh:disabled {
  cursor: wait;
  opacity: .65;
}

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

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

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

.ptp-restore-stat strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 28px;
}

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

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

.ptp-restore-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 230px auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #edf1f7;
}

.ptp-restore-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  padding: 0 12px;
}

.ptp-restore-search input {
  width: 100%;
  min-height: 43px;
  border: 0;
  background: transparent;
  outline: none;
}

.ptp-restore-toolbar select {
  min-height: 43px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #fff;
  padding: 9px 11px;
  outline: none;
}

.ptp-restore-toolbar > span {
  color: #70809d;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

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

.ptp-restore-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

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

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

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

.ptp-restore-record {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ptp-restore-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-weight: 900;
}

.ptp-restore-record strong,
.ptp-restore-record small {
  display: block;
}

.ptp-restore-record small {
  max-width: 430px;
  overflow: hidden;
  margin-top: 3px;
  color: #8190a8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ptp-restore-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 850;
}

.ptp-restore-badge.client {
  background: #eaf2ff;
  color: #2563eb;
}

.ptp-restore-badge.task {
  background: #ede9fe;
  color: #6d28d9;
}

.ptp-restore-badge.lost {
  background: #fef2f2;
  color: #b91c1c;
}

.ptp-restore-badge.followup {
  background: #fff7ed;
  color: #c2410c;
}

.ptp-restore-badge.payment {
  background: #ecfdf5;
  color: #047857;
}

.ptp-restore-service {
  color: #52617a;
  font-weight: 750;
}

.ptp-restore-date strong,
.ptp-restore-date small {
  display: block;
}

.ptp-restore-date small {
  margin-top: 3px;
  color: #8190a8;
}

.ptp-restore-action {
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #ecfdf5;
  padding: 8px 13px;
  color: #047857;
  font-weight: 850;
}

.ptp-restore-action:disabled {
  cursor: wait;
  opacity: .6;
}

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

.ptp-restore-note {
  margin-top: 17px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 14px 16px;
}

.ptp-restore-note strong {
  color: #172033;
  font-size: 13px;
}

.ptp-restore-note p {
  margin: 5px 0 0;
  color: #526783;
  font-size: 12px;
  line-height: 1.55;
}

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

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

  .ptp-restore-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .ptp-restore-head {
    flex-direction: column;
  }

  .ptp-restore-refresh {
    width: 100%;
  }

  .ptp-restore-stats,
  .ptp-restore-toolbar {
    grid-template-columns: 1fr;
  }
}