/*
==================================================
FACILITY ACCORDION
==================================================
*/

.facility-accordion {
  width: 100%;
}

/*
==================================================
GROUP
==================================================
*/
.facility-group {
  border-bottom: 1px solid #e5e7eb;
}

/*
==================================================
PARENT BUTTON
==================================================
*/
.facility-parent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}


.facility-parent:hover {
  background: #f5f9fd;
}

.facility-parent.active {
  color: #ffff
}

.facility-group.is-active>.facility-parent {
  background: #f0f7fd;
}

.facility-parent-single {
  color: #ffff
}



/*
==================================================
PARENT ICON
==================================================
*/

.facility-parent-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: #eaf4fb;
  color: #1769aa;
  font-size: 17px;
}


/*
==================================================
PARENT CONTENT
==================================================
*/

.facility-parent-content {
  flex: 1;
  min-width: 0;
}


.facility-parent-title {
  display: block;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  color: #1f2937;
}


.facility-parent-count {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #94a3b8;
}


/*
==================================================
PARENT ARROW
==================================================
*/

.facility-parent-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}


.facility-group.is-active .facility-parent-arrow {
  transform: rotate(180deg);
}


/*
==================================================
CHILD CONTAINER
==================================================
*/

.facility-children {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: #f8fafc;
  transition: grid-template-rows 0.35s ease;
}


.facility-children.is-open {
  grid-template-rows: 1fr;
}


.facility-children-inner {
  min-height: 0;
}

facility-children.active {
  color: #6b7280
}


/*
==================================================
CHILD BUTTON
==================================================
*/

.facility-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding:
    14px 18px 14px 30px;
  border: 0;
  border-top: 1px solid #edf1f5;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

button.facility-item,
button.facility-parent {
  background-color: #fff;
}

button.facility-item:hover,
button.facility-parent:hover {
  background-color: #eef6fc;
}

button.facility-item.active {
  background: #eef6fc
}

.facility-item:hover {
  background: #eef6fc;
}


/*
==================================================
ACTIVE CHILD
==================================================
*/

.facility-item.active {
  background: #1769aa;
  color: #ffffff;
}


.facility-item.active .facility-title {
  color: #ffffff;
}


.facility-item.active .facility-child-indicator {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}


/*
==================================================
CHILD ICON
==================================================
*/

.facility-child-indicator {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #1769aa;
  font-size: 13px;
}


/*
==================================================
CHILD TITLE
==================================================
*/

.facility-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #475569;
}


/*
==================================================
CHILD ARROW
==================================================
*/

.facility-arrow {
  font-size: 11px;
  color: #94a3b8;
}

.facility-item.active .facility-arrow {
  color: #ffffff;
}

.booking-dashboard {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.booking-sidebar,
.booking-calendar-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.booking-sidebar-header {
  padding: 26px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.booking-label,
.calendar-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #1769aa;
}

.booking-sidebar h2,
.calendar-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.booking-sidebar p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.facility-list {
  max-height: 680px;
  overflow-y: auto;
}

.facility-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.facility-item:hover {
  background: #f3f8fd;
}

.facility-item.active {
  background: #1769aa;
  color: #fff;
}

.facility-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eef6fc;
  color: #1769aa;
}

.facility-item.active .facility-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.facility-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.facility-arrow {
  font-size: 12px;
  opacity: 0.8;
}

.booking-calendar-panel {
  padding: 30px;
  min-width: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border-radius: 999px;

  background: #1769aa;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.25s ease;
}

.booking-btn:hover {
  background: #0f4f82;
  color: #fff;
}

#facility-calendar {
  min-height: 650px;
}

.fc {
  font-family: inherit;
}

.fc .fc-toolbar-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.fc .fc-button-primary {
  background: #1769aa;
  border-color: #1769aa;
}

.fc .fc-button-primary:hover {
  background: #0f4f82;
  border-color: #0f4f82;
}

.fc-event {
  border: 0;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 600;
}

.booking-status-pending {
  background: #f59e0b !important;
}

.booking-status-approved {
  background: #16a34a !important;
}

.booking-status-rejected {
  background: #dc2626 !important;
}

.booking-status-paid {
  background: #2563eb !important;
}

@media (max-width: 991px) {
  .booking-dashboard {
    grid-template-columns: 1fr;
  }

  .calendar-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-btn {
    width: 100%;
  }
}

body.booking-modal-open {
  overflow: hidden;
}

.booking-disabled-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;

}

.booking-disabled-modal.is-visible {
  display: flex;
}

.booking-disabled-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.booking-disabled-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 36px 30px 28px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  background-color: #94a3b8;
}

.booking-disabled-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.booking-disabled-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #b42318;
  background: #fee4e2;
  font-size: 36px;
  font-weight: 700;
}

.booking-disabled-dialog h3 {
  margin: 0 0 15px;
}

.booking-disabled-dialog p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.booking-disabled-button {
  margin-top: 12px;
  padding: 10px 24px;
  border: 0;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
}

.booking-btn.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.mpk-technical-field {
  display: none;
}

.mpk-booking-dialog .ui-dialog-content {
  padding: 0;
  background: #f5f7fa;
}

.mpk-booking-modal {
  padding: 24px;
}

.mpk-booking-modal__header {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  border-left: 5px solid #0866a6;
}

.mpk-booking-modal__facility {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.mpk-booking-modal__date {
  color: #64748b;
  font-size: 0.95rem;
}

.mpk-booking-rates {
  margin-bottom: 24px;
}

.mpk-booking-rates__title,
.mpk-booking-form-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.mpk-booking-rates__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mpk-booking-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  cursor: pointer;
  border: 2px solid #dbe2ea;
  border-radius: 12px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mpk-booking-rate:hover {
  border-color: #5b9bca;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mpk-booking-rate.is-selected {
  border-color: #0866a6;
  background: #f0f8ff;
  box-shadow: 0 0 0 3px rgba(8, 102, 166, 0.12);
}

.mpk-booking-rate__selector {
  flex: 0 0 auto;
}

.mpk-booking-rate__radio {
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
}

.mpk-booking-rate.is-selected .mpk-booking-rate__radio {
  border: 5px solid #0866a6;
}

.mpk-booking-rate__details {
  flex: 1 1 auto;
}

.mpk-booking-rate__name {
  margin-bottom: 4px;
  font-weight: 700;
  color: #172033;
}

.mpk-booking-rate__time,
.mpk-booking-rate__deposit {
  color: #64748b;
  font-size: 0.85rem;
}

.mpk-booking-rate__price {
  flex: 0 0 auto;
  text-align: right;
}

.mpk-booking-rate__price strong {
  display: block;
  color: #0866a6;
  font-size: 1.1rem;
}

.mpk-booking-rate__price span {
  color: #64748b;
  font-size: 0.8rem;
}

.mpk-booking-modal form {
  padding: 22px;
  border-radius: 12px;
  background: #ffffff;
}

.mpk-booking-price-summary {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #f8fafc;
}

.mpk-price-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
}

.mpk-price-summary__total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #dbe2ea;
  font-size: 1.05rem;
}

.mpk-price-summary__total strong {
  color: #0866a6;
}

.mpk-technical-field {
  display: none !important;
}

@media (max-width: 767px) {
  .mpk-booking-modal {
    padding: 14px;
  }

  .mpk-booking-rates__items {
    grid-template-columns: 1fr;
  }

  .mpk-booking-rate {
    align-items: flex-start;
  }

  .mpk-booking-rate__price {
    min-width: 90px;
  }
}

.mpk-booking-price-summary {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  background: #f8fafc;
}

.mpk-price-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 7px 0;
}

.mpk-price-summary__row span {
  color: #64748b;
}

.mpk-price-summary__row strong {
  text-align: right;
  color: #172033;
}

.mpk-price-summary__total {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #d8e0e8;
  font-size: 1.1rem;
}

.mpk-price-summary__total strong {
  color: #0866a6;
  font-size: 1.25rem;
}

.mpk-price-summary__message {
  color: #64748b;
  text-align: center;
}

@media (max-width: 575px) {
  .mpk-price-summary__row {
    display: block;
  }

  .mpk-price-summary__row strong {
    display: block;
    margin-top: 3px;
    text-align: left;
  }
}

.mpk-booking-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
}

.mpk-booking-availability__icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mpk-booking-availability.is-idle {
  border-color: #d8e0e8;
  background: #f8fafc;
  color: #64748b;
}

.mpk-booking-availability.is-idle .mpk-booking-availability__icon {
  background: #94a3b8;
}

.mpk-booking-availability.is-checking {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.mpk-booking-availability.is-checking .mpk-booking-availability__icon {
  background: #3b82f6;
  animation: mpkAvailabilityPulse 1s infinite;
}

.mpk-booking-availability.is-available {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mpk-booking-availability.is-available .mpk-booking-availability__icon {
  background: #22c55e;
}

.mpk-booking-availability.is-unavailable,
.mpk-booking-availability.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mpk-booking-availability.is-unavailable .mpk-booking-availability__icon,
.mpk-booking-availability.is-error .mpk-booking-availability__icon {
  background: #ef4444;
}

.mpk-booking-modal [type="submit"].is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@keyframes mpkAvailabilityPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.mpk-payment-selection {
  padding: 24px;
}

.mpk-payment-success {
  margin-bottom: 24px;
  text-align: center;
}

.mpk-payment-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 30px;
  font-weight: 700;
}

.mpk-payment-success h2 {
  margin: 0 0 8px;
}

.mpk-payment-summary {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
}

.mpk-payment-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.mpk-payment-amount {
  color: #0866a6;
  font-size: 1.2rem;
}

.mpk-payment-method-title {
  margin: 0 0 14px;
}

.mpk-payment-fpx-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}

.mpk-payment-notice {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.88rem;
  text-align: center;
}

.mpk-history-button:focus,
.mpk-history-button:active {
  outline: none;
  box-shadow: none;
}

.mpk-history-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1769aa;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mpk-history-button a:focus {
  outline: auto;
  background-color: #0866a6;
}
