﻿/* PTP_FLIGHT_RESCHEDULE_V1 */

.ptp-flight-reschedule-action {
  border: 1px solid #c7d8f7;
  border-radius: 9px;
  background: #eff6ff;
  padding: 7px 10px;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ptp-flight-reschedule-action:hover {
  border-color: #2563eb;
  background: #dbeafe;
}

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

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

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

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

.ptp-reschedule-head h2 {
  margin: 0;
  color: #172033;
  font-size: 24px;
}

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

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

.ptp-reschedule-body {
  max-height: calc(94vh - 85px);
  overflow-y: auto;
  padding: 22px 24px 26px;
}

.ptp-reschedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

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

.ptp-reschedule-toolbar p {
  margin: 5px 0 0;
  color: #8190a8;
}

.ptp-reschedule-primary,
.ptp-reschedule-secondary,
.ptp-reschedule-danger,
.ptp-reschedule-mini {
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ptp-reschedule-primary {
  border: 0;
  background: #2563eb;
  color: #ffffff;
}

.ptp-reschedule-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ptp-reschedule-secondary,
.ptp-reschedule-mini {
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #172033;
}

.ptp-reschedule-danger {
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #b91c1c;
}

.ptp-reschedule-list {
  display: grid;
  gap: 13px;
}

.ptp-reschedule-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 15px;
  padding: 36px 20px;
  color: #8190a8;
  text-align: center;
}

.ptp-reschedule-card {
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #ffffff;
  padding: 17px;
}

.ptp-reschedule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.ptp-reschedule-card-head h4 {
  margin: 0;
  color: #172033;
  font-size: 17px;
}

.ptp-reschedule-card-head p {
  margin: 5px 0 0;
  color: #8190a8;
}

.ptp-reschedule-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.ptp-reschedule-badge.confirmed,
.ptp-reschedule-badge.completed {
  background: #ecfdf5;
  color: #047857;
}

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

.ptp-reschedule-badge.quoted {
  background: #fff7ed;
  color: #c2410c;
}

.ptp-reschedule-route-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.ptp-reschedule-route-box {
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.ptp-reschedule-route-box span {
  display: block;
  color: #8190a8;
  font-size: 11px;
  text-transform: uppercase;
}

.ptp-reschedule-route-box strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 14px;
}

.ptp-reschedule-finance-row {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ptp-reschedule-finance-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px;
}

.ptp-reschedule-finance-box span {
  display: block;
  color: #8190a8;
  font-size: 11px;
}

.ptp-reschedule-finance-box strong {
  display: block;
  margin-top: 5px;
  color: #172033;
}

.ptp-reschedule-finance-box.profit strong {
  color: #047857;
}

.ptp-reschedule-finance-box.pending strong {
  color: #c2410c;
}

.ptp-reschedule-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.ptp-reschedule-mini {
  padding: 7px 11px;
  font-size: 12px;
}

.ptp-reschedule-mini.delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.ptp-reschedule-form-wrap {
  margin-top: 22px;
  border: 1px solid #dbeafe;
  border-radius: 17px;
  background: #f8fafc;
  padding: 19px;
}

.ptp-reschedule-form-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ptp-reschedule-form-title h3 {
  margin: 0;
  color: #172033;
}

.ptp-reschedule-form-title p {
  margin: 5px 0 0;
  color: #8190a8;
}

.ptp-reschedule-section-title {
  margin: 22px 0 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #172033;
  font-size: 16px;
}

.ptp-reschedule-section-title:first-of-type {
  margin-top: 0;
}

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

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

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

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

.ptp-reschedule-field textarea {
  resize: vertical;
}

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

.ptp-reschedule-finance-area {
  border: 1px solid #dbeafe;
  border-radius: 15px;
  background: #eff6ff;
  padding: 16px;
}

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

.ptp-reschedule-calculation {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

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

.ptp-reschedule-calculation strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 17px;
}

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

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

.ptp-reschedule-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .ptp-reschedule-route-grid,
  .ptp-reschedule-finance-row,
  .ptp-reschedule-calculations {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ptp-reschedule-toolbar,
  .ptp-reschedule-card-head,
  .ptp-reschedule-form-title {
    flex-direction: column;
  }

  .ptp-reschedule-grid,
  .ptp-reschedule-route-grid,
  .ptp-reschedule-finance-row,
  .ptp-reschedule-calculations {
    grid-template-columns: 1fr;
  }

  .ptp-reschedule-span-2 {
    grid-column: auto;
  }
}
