﻿/* PTP_HOTEL_FINANCE_V1 */

.ptp-hotel-finance-section {
  margin-bottom: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #f8fafc;
  padding: 18px;
}

.ptp-hotel-finance-section.hidden,
.ptp-hotel-finance-title.hidden,
.ptp-hotel-finance-dashboard.hidden {
  display: none !important;
}

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

.ptp-hotel-finance-calculation {
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: white;
  padding: 14px;
}

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

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

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

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

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

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

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

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

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

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

.ptp-hotel-finance-mini {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.ptp-hotel-finance-mini strong {
  display: inline;
  color: #047857;
  font-size: 11px;
}

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

@media (max-width: 640px) {
  .ptp-hotel-finance-calculations,
  .ptp-hotel-finance-dashboard {
    grid-template-columns: 1fr;
  }
}
