﻿/* PTP_OTHER_SERVICES_V1 */

.ptp-other-page {
  padding: 28px;
}

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

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

.ptp-other-head p {
  margin: 6px 0 0;
  color: #8190a8;
}

.ptp-other-primary,
.ptp-other-secondary,
.ptp-other-action {
  border-radius: 11px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ptp-other-primary {
  border: 0;
  background: #2563eb;
  color: #fff;
}

.ptp-other-primary:disabled {
  cursor: wait;
  opacity: .65;
}

.ptp-other-secondary,
.ptp-other-action {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #172033;
}

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

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

.ptp-other-stat span,
.ptp-other-finance-card span {
  display: block;
  color: #8190a8;
  font-size: 13px;
}

.ptp-other-stat strong,
.ptp-other-finance-card strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 23px;
}

.ptp-other-finance-card.profit strong {
  color: #047857;
}

.ptp-other-finance-card.pending strong {
  color: #c2410c;
}

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

.ptp-other-toolbar {
  display: grid;
  grid-template-columns:
    minmax(250px, 1fr)
    210px
    180px
    auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #edf1f7;
}

.ptp-other-toolbar input,
.ptp-other-toolbar select,
.ptp-other-field input,
.ptp-other-field select,
.ptp-other-field textarea,
.ptp-other-item input,
.ptp-other-item select,
.ptp-other-item textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
  color: #172033;
  font: inherit;
  outline: none;
}

.ptp-other-toolbar input:focus,
.ptp-other-toolbar select:focus,
.ptp-other-field input:focus,
.ptp-other-field select:focus,
.ptp-other-field textarea:focus,
.ptp-other-item input:focus,
.ptp-other-item select:focus,
.ptp-other-item textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

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

.ptp-other-table {
  width: 100%;
  min-width: 1250px;
  border-collapse: collapse;
}

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

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

.ptp-other-table td {
  color: #263247;
  font-size: 14px;
}

.ptp-other-main strong {
  display: block;
  color: #172033;
}

.ptp-other-main small {
  display: block;
  margin-top: 3px;
  color: #8190a8;
}

.ptp-other-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.ptp-other-badge.confirmed {
  background: #fff7ed;
  color: #c2410c;
}

.ptp-other-badge.completed {
  background: #ecfdf5;
  color: #047857;
}

.ptp-other-badge.cancelled {
  background: #fef2f2;
  color: #b91c1c;
}

.ptp-other-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ptp-other-action {
  padding: 7px 10px;
  font-size: 12px;
}

.ptp-other-action.danger {
  color: #b91c1c;
}

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

.ptp-other-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15,23,42,.62);
}

.ptp-other-backdrop.hidden,
.ptp-other-admin-only.hidden {
  display: none !important;
}

.ptp-other-modal {
  width: min(1120px, calc(100vw - 30px));
  max-height: 94vh;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15,23,42,.32);
}

.ptp-other-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px;
  border-bottom: 1px solid #e7ecf3;
}

.ptp-other-modal-head h2 {
  margin: 0;
  color: #172033;
}

.ptp-other-modal-head p {
  margin: 6px 0 0;
  color: #8190a8;
}

.ptp-other-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 30px;
  cursor: pointer;
}

.ptp-other-modal-body {
  max-height: calc(94vh - 155px);
  overflow-y: auto;
  padding: 22px 24px;
}

.ptp-other-section-title {
  margin: 24px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1f7;
  color: #172033;
  font-size: 17px;
}

.ptp-other-section-title:first-child {
  margin-top: 0;
}

.ptp-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.ptp-other-field label,
.ptp-other-item-field label {
  display: block;
  margin-bottom: 7px;
  color: #273449;
  font-size: 13px;
  font-weight: 800;
}

.ptp-other-span-2 {
  grid-column: 1 / -1;
}

.ptp-other-item-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.ptp-other-item-toolbar h3 {
  margin: 0;
  color: #172033;
}

.ptp-other-item-summary {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.ptp-other-item {
  margin-bottom: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 15px;
  background: #f8fafc;
  padding: 16px;
}

.ptp-other-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ptp-other-item-head strong {
  color: #172033;
}

.ptp-other-remove-item {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ptp-other-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.ptp-other-item-wide {
  grid-column: span 2;
}

.ptp-other-finance-box {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fafc;
  padding: 18px;
}

.ptp-other-calculations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ptp-other-calculation {
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.ptp-other-calculation span {
  display: block;
  color: #8190a8;
  font-size: 12px;
}

.ptp-other-calculation strong {
  display: block;
  margin-top: 6px;
  color: #172033;
  font-size: 18px;
}

.ptp-other-calculation.profit strong {
  color: #047857;
}

.ptp-other-calculation.loss strong {
  color: #b91c1c;
}

.ptp-other-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e7ecf3;
  background: #fff;
}

.ptp-other-readonly input,
.ptp-other-readonly select,
.ptp-other-readonly textarea {
  background: #f8fafc;
  color: #475569;
}

@media (max-width: 950px) {
  .ptp-other-stats,
  .ptp-other-finance-summary,
  .ptp-other-calculations {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .ptp-other-toolbar,
  .ptp-other-item-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .ptp-other-page {
    padding: 16px;
  }

  .ptp-other-head,
  .ptp-other-item-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ptp-other-stats,
  .ptp-other-finance-summary,
  .ptp-other-calculations,
  .ptp-other-toolbar,
  .ptp-other-grid,
  .ptp-other-item-grid {
    grid-template-columns: 1fr;
  }

  .ptp-other-span-2,
  .ptp-other-item-wide {
    grid-column: auto;
  }
}
