.datepicker,
.datetimepicker,
.timepicker {
  z-index: 1065 !important;
}

/* Combo grid modal layout and scrolling behavior */
.multi-combo-grid-form {
  /* height: min( 80vh , 800px ); */
  display: flex;
  flex-direction: column;
}

.combo-grid-row {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.combo-left-pane {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.combo-right-pane {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.combo-right-pane > div {
  height: 100%;
}

.combo-grid-slider {
  height: 100%;
}

.combo-grid-slider > div {
  height: 100%;
}

/* Keep the small section header visible as the user scrolls */
.combo-right-pane .sticky-section-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  padding-top: 4px;
  padding-bottom: 6px;
}

.combo-right-pane .combo-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.combo-right-pane .combo-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Compact form spacing inside the right pane */
.combo-right-pane .form-group {
  margin-bottom: 0.35rem;
}

.combo-right-pane .mb-3 {
  margin-bottom: 0.35rem !important;
}

.combo-right-pane .mt-3 {
  margin-top: 0.5rem !important;
}

.combo-right-pane .input-group-text {
  padding: 3px 6px;
  font-size: 0.95rem;
}

.combo-right-pane .form-control,
.combo-right-pane .form-select,
.combo-right-pane input[type="text"],
.combo-right-pane input[type="number"],
.combo-right-pane input[type="email"],
.combo-right-pane input[type="date"] {
  padding: 3px 8px;
  min-height: 32px;
  line-height: 1.15;
}

.combo-right-pane h5 {
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Guests (adults/children/infants) group: wrap horizontally, stack vertically when needed */
.combo-right-pane .guests-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}

.combo-right-pane .guests-group .guest-field {
  flex: 1 1 140px;
  min-width: 140px;
  margin-bottom: 4px;
}

/* Generic popup grouping */
.combo-right-pane .popup-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: flex-end;
}

.combo-right-pane .popup-group .group-field {
  flex: 1 1 100px;
  min-width: 100px;
}

/* Group layout modes: either all in one row or stacked vertically */
.combo-right-pane .popup-group.pg-horizontal .group-field {
  flex: 1 1 0;
  min-width: 0;
}

.combo-right-pane .popup-group.pg-vertical .group-field {
  flex: 1 1 100%;
  min-width: 100%;
}

/* Flow layout for popup form fields with size-aware widths */
.combo-right-pane .form-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
}

.combo-right-pane .popup-field {
  display: flex;
  flex-direction: column;
}

.combo-right-pane .pf-label {
  margin-bottom: 2px;
}

/* Size presets per input type */
.combo-right-pane .pf-number { flex: 0 0 120px; }
.combo-right-pane .pf-time   { flex: 0 0 150px; }
.combo-right-pane .pf-date   { flex: 0 0 210px; }
.combo-right-pane .pf-datetime { flex: 0 0 250px; }
.combo-right-pane .pf-select { flex: 1 1 200px; min-width: 180px; }
.combo-right-pane .pf-text   { flex: 1 1 220px; min-width: 180px; }
.combo-right-pane .pf-tag    { flex: 1 1 100%;  min-width: 260px; }
.combo-right-pane .pf-textarea { flex: 1 1 100%; min-width: 100%; }
.combo-right-pane .pf-guests { flex: 1 1 100%; min-width: 100%; }

/* Hotel popup: hide manual price controls when rateplans are selected */
form[id$='-slide-form'][data-rateplans-count]:not([data-rateplans-count="0"]) #hotel-manual-price-wrapper {
  display: none;
}

form[id$='-slide-form'][data-rateplans-count]:not([data-rateplans-count="0"]) #hotel-rateplan-summary {
  display: block;
}

.combo-right-pane .hotel-rateplan-summary {
  display: none;
  margin-bottom: 8px;
}

.combo-right-pane .hotel-rateplan-summary-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.combo-right-pane .hotel-rateplan-summary-table th,
.combo-right-pane .hotel-rateplan-summary-table td {
  padding: 0.3rem 0.45rem;
  vertical-align: middle;
}

/* Hotel name shown in the sticky header on slides 1 and 2 */
.combo-hotel-name-subtitle {
    font-size: 15px;
    color: #ffffff;
    margin-top: 2px;
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: #4285f4;
    padding: 2px 10px 2px 10px;
}
