﻿/* PTP_HOTEL_MODULE_V1 */

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

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

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

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

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

.ptp-hotel-primary {
  background: #2563eb;
  color: white;
}

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

.ptp-hotel-secondary {
  border: 1px solid #dbe3ef;
  background: white;
  color: #172033;
}

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

.ptp-hotel-stat {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  padding: 17px;
}

.ptp-hotel-stat span {
  display: block;
  color: #8190a8;
  font-size: 13px;
}

.ptp-hotel-stat strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 25px;
}

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

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

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

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

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

.ptp-hotel-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

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

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

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

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

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

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

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

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

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

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

.ptp-hotel-action {
  border: 1px solid #dbe3ef;
  background: white;
  padding: 7px 10px;
  color: #334155;
  font-size: 12px;
}

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

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

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

.ptp-hotel-backdrop.hidden {
  display: none;
}

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

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

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

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

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

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

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

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

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

.ptp-hotel-field label,
.ptp-hotel-room-field label {
  display: block;
  margin-bottom: 7px;
  color: #273449;
  font-size: 13px;
  font-weight: 700;
}

.ptp-hotel-field textarea,
.ptp-hotel-room-card textarea {
  resize: vertical;
}

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

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

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

.ptp-hotel-room-summary {
  color: #64748b;
  font-size: 13px;
}

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

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

.ptp-hotel-room-card-head strong {
  color: #172033;
}

.ptp-hotel-room-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.ptp-hotel-room-wide {
  grid-column: span 2;
}

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

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

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

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

  .ptp-hotel-room-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

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

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

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

  .ptp-hotel-span-2,
  .ptp-hotel-room-wide {
    grid-column: auto;
  }
}
