/* PTP_COMMAND_CENTER_V1 */
.ptp-command-page {
  padding: 28px;
}

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

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

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

.ptp-command-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-command-refresh:disabled {
  cursor: wait;
  opacity: .65;
}

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

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

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

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

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

.ptp-command-stat.urgent strong {
  color: #dc2626;
}

.ptp-command-stat.due strong {
  color: #c2410c;
}

.ptp-command-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.ptp-command-finance > div {
  padding: 17px 19px;
  border-right: 1px solid #edf1f7;
}

.ptp-command-finance > div:last-child {
  border-right: 0;
}

.ptp-command-finance strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 21px;
}

.ptp-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 17px;
  align-items: start;
}

.ptp-command-side {
  display: grid;
  gap: 17px;
}

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

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

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

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

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

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

.ptp-command-table {
  width: 100%;
  min-width: 770px;
  border-collapse: collapse;
}

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

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

.ptp-command-table td {
  color: #334155;
  font-size: 12px;
}

.ptp-command-person strong,
.ptp-command-person small,
.ptp-command-work strong,
.ptp-command-work small {
  display: block;
}

.ptp-command-person small,
.ptp-command-work small {
  margin-top: 3px;
  color: #8190a8;
}

.ptp-command-due {
  white-space: nowrap;
  font-weight: 750;
}

.ptp-command-due.overdue {
  color: #dc2626;
}

.ptp-command-due.today {
  color: #c2410c;
}

.ptp-command-open {
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  padding: 7px 11px;
  color: #2563eb;
  font-weight: 850;
}

.ptp-command-service-list {
  display: grid;
  gap: 17px;
  padding: 19px;
}

.ptp-command-service-row {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.ptp-command-service-row span {
  color: #52617a;
  font-size: 12px;
  font-weight: 750;
}

.ptp-command-service-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f8;
}

.ptp-command-service-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.ptp-command-service-row strong {
  color: #172033;
  text-align: right;
}

.ptp-command-client-list {
  display: grid;
}

.ptp-command-client {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-bottom: 1px solid #edf1f7;
}

.ptp-command-client:last-child {
  border-bottom: 0;
}

.ptp-command-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-command-client strong,
.ptp-command-client small {
  display: block;
}

.ptp-command-client small {
  margin-top: 3px;
  color: #8190a8;
  font-size: 11px;
}

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

.ptp-command-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-command-stats,
  .ptp-command-finance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ptp-command-finance > div:nth-child(2) {
    border-right: 0;
  }

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

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

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

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

  .ptp-command-stats,
  .ptp-command-finance {
    grid-template-columns: 1fr;
  }

  .ptp-command-finance > div {
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }
}