/* Manage Bookings — page-scoped only (not shared with OTA Allotments'
   own .plx-stat-card-grid/cards.css, per this project's duplicate-
   rather-than-share convention for page-specific reference layouts).
   Close to that shared .plx-stat-card component (icon left in a plain
   bordered box, property name + label stacked as the title block) but
   the value/trend sit stacked on their own lines below the title
   instead of inline beside it, and this page needs 6 columns instead
   of 4 — different enough layout that it gets its own .plx-mb-stat-*
   set rather than forcing the shared one to flex both ways. Reuses
   .plx-tabs, .plx-filter-bar, and .plx-pill as-is — those really are
   the same component. */

.plx-mb-stat-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: var(--space-8);
}

@media (max-width: 991.98px) {
  .plx-mb-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .plx-mb-stat-grid {
    grid-template-columns: 1fr;
  }
}

.plx-mb-stat-card {
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-1);
  padding: var(--space-2);
}

.plx-mb-stat-icon {
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--pm-primary);
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.plx-mb-stat-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.plx-mb-stat-title {
  color: var(--pm-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

.plx-mb-stat-label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}

.plx-mb-stat-value {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  margin-top: 2px;
}

.plx-mb-stat-trend {
  font-size: var(--text-xs);
}

.plx-mb-property-group {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
}

.plx-mb-group-header {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.plx-mb-group-header .plx-icon {
  color: var(--pm-primary);
}

.plx-mb-group-type-link {
  color: var(--color-booked);
  font-weight: var(--weight-medium);
}

.plx-mb-card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1199.98px) {
  .plx-mb-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .plx-mb-card-grid {
    grid-template-columns: 1fr;
  }
}

.plx-mb-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plx-mb-card-top {
  align-items: baseline;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.plx-mb-card-id {
  color: var(--color-booked);
  font-weight: var(--weight-semibold);
}

.plx-mb-card-guest {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.plx-mb-card-row {
  border-bottom: 1px solid var(--border-default);
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
}

.plx-mb-card-field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.plx-mb-card-row .plx-mb-card-field:first-child {
  border-right: 1px solid var(--border-default);
  padding-right: var(--space-4);
}

.plx-mb-card-label {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.plx-mb-card-value {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.plx-mb-card-badges {
  border-bottom: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.plx-mb-card-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
}

/* .plx-btn-outline's own shared border/text (--pm-accent, a light
   purple) reads too light/tinted against the reference's neutral dark
   grey Manage/View buttons — scoped to this page's cards only, not a
   change to the shared button component itself. */
.plx-mb-card-footer .plx-btn-outline {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Confirmation History's own cards (no badges row, single "View" button
   — see manage-bookings.blade.php) sit right-aligned at their natural
   size instead of stretching full-width like the two-button Check-in &
   Check-out/Manage footer every other tab's cards use. */
.plx-mb-card-footer .plx-btn:not(:only-child) {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: var(--space-3);
}

.plx-mb-empty {
  color: var(--text-muted);
  padding: var(--space-8) 0;
  text-align: center;
}
