
/* PMS sidebar, booking editor and details-modal fixes */
@media(min-width:901px){
  .dashboard-sidebar{
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
    height:100vh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    z-index:80!important;
  }
  .dashboard-logo{flex:0 0 auto!important;min-height:150px!important;padding-bottom:18px!important}
  .dashboard-menu{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:6px!important;
    padding-bottom:18px!important;
    scrollbar-width:thin!important;
  }
  .dashboard-menu-item{min-height:48px!important;flex:0 0 auto!important}
  .dashboard-sidebar-footer,.dashboard-sidebar-bottom{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:2!important;
    background:transparent!important;
  }
  .dashboard-main,.dashboard-v4-main{min-width:0!important}
}
.pms-booking-editor-overlay{position:fixed;inset:0;z-index:999999;background:rgba(3,18,28,.72);display:flex;align-items:center;justify-content:center;padding:18px}
.pms-booking-editor{width:min(920px,96vw);max-height:94vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.pms-booking-editor>header{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e3ece9}.pms-booking-editor h2{margin:0;color:#063f37}.pms-booking-editor p{margin:4px 0 0;color:#64748b}.pms-booking-editor>header button{width:42px;height:42px;border:0;border-radius:50%;font-size:28px}
.pms-editor-search{display:block;padding:20px 24px;font-weight:900}.pms-editor-search select{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #cedbd7;border-radius:12px}
.pms-booking-editor form{padding:0 24px 24px}.pms-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pms-editor-grid label{font-weight:900;color:#24364b}.pms-editor-grid input,.pms-editor-grid select,.pms-editor-grid textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #cedbd7;border-radius:12px;font:inherit}.pms-editor-grid textarea{min-height:100px}.pms-editor-full{grid-column:1/-1}.pms-editor-message{min-height:24px;margin:14px 0;color:#075d50;font-weight:800}.pms-booking-editor footer{display:flex;justify-content:flex-end;gap:10px}.pms-booking-editor footer button{padding:12px 18px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;font-weight:900}.pms-booking-editor footer .primary{background:#075d50;color:#fff;border-color:#075d50}
.pms-inline-edit-btn{border:0!important;border-radius:999px!important;padding:0 20px!important;min-height:52px!important;background:#0b6f60!important;color:#fff!important;font-weight:900!important;box-shadow:0 10px 24px rgba(7,93,80,.25)!important;cursor:pointer!important;white-space:nowrap!important}
.pms-inline-edit-btn--header{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:14px!important}
.program-disabled-notice{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff1f1;color:#a32020;font-weight:900}.is-program-disabled{opacity:.65;cursor:not-allowed!important}
.room-quantity-limit-note{display:block;margin-top:7px;color:#075d50;font-weight:800}
@media(max-width:760px){.pms-editor-grid{grid-template-columns:1fr}.pms-editor-full{grid-column:auto}.pms-inline-edit-btn{width:100%}}

/* PMS – ADMIN KÁRTYA MARAD, MENÜ TELJESEN GÖRGETHETŐ */
@media (min-width: 901px) {
  html body .dashboard-sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  html body .dashboard-logo {
    flex: 0 0 auto !important;
    min-height: 126px !important;
    padding: 4px 0 10px !important;
  }

  html body .dashboard-logo img {
    width: 106px !important;
    max-width: 106px !important;
    max-height: 106px !important;
  }

  html body .dashboard-menu {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 18px !important;
    scrollbar-width: thin !important;
  }

  html body .dashboard-menu-item {
    flex: 0 0 auto !important;
    min-height: 46px !important;
  }

  html body .dashboard-sidebar-footer,
  html body .dashboard-sidebar-bottom {
    display: flex !important;
    flex: 0 0 auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding-top: 8px !important;
    gap: 8px !important;
    z-index: 2 !important;
  }

  html body .dashboard-user-card {
    display: flex !important;
  }
}

.pms-inline-edit-btn{display:none!important}


/* Foglalás részletei: egyetlen alsó Szerkesztés gomb */
.booking-modal-actions-grid .pms-bottom-edit-booking{
  min-height:46px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:0 16px !important;
  font-size:14px !important;
  font-weight:950 !important;
  cursor:pointer !important;
  background:linear-gradient(135deg,#d6ae37,#f4d46f) !important;
  color:#07172f !important;
  box-shadow:0 14px 28px rgba(8,38,61,.16) !important;
  white-space:nowrap !important;
}
.booking-modal-actions-grid[data-pms-five-actions="1"]{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}
@media(max-width:760px){
  .booking-modal-actions-grid,
  .booking-modal-actions-grid[data-pms-five-actions="1"]{grid-template-columns:1fr !important;}
  .booking-modal-actions-grid .pms-bottom-edit-booking{width:100% !important;}
}

.pms-editor-readonly{background:#f1f5f9!important;color:#64748b!important;cursor:not-allowed}.pms-editor-help{margin:14px 0 0;color:#64748b;font-weight:700;line-height:1.5}.pms-booking-editor button:disabled{opacity:.6;cursor:wait}


/* SABAI PMS – LOGÓ KITÖLTÖTT BAL FELSŐ BLOKK */
@media screen and (min-width:901px){
  html body .dashboard-sidebar{
    padding-top:8px !important;
  }
  html body .dashboard-logo{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-height:154px !important;
    height:154px !important;
    max-height:154px !important;
    padding:0 !important;
    margin:0 0 8px !important;
    overflow:hidden !important;
  }
  html body .dashboard-logo img{
    display:block !important;
    width:244px !important;
    max-width:244px !important;
    height:150px !important;
    max-height:150px !important;
    object-fit:cover !important;
    object-position:center 44% !important;
    margin:0 !important;
    padding:0 !important;
  }
}
.pms-missed-checkin-warning{margin:0 0 18px;padding:14px 16px;border:1px solid #f59e0b;border-radius:16px;background:#fff7ed;color:#9a3412;font-weight:900}
.pms-missed-checkin-item{border:2px solid rgba(245,158,11,.55)!important;background:linear-gradient(135deg,#fff7ed,#fff)!important;box-shadow:0 12px 28px rgba(180,83,9,.12)!important}
.pms-missed-checkin-text{display:block;margin-top:5px;color:#b45309;font-size:12px;font-weight:900}
.pms-arrival-checkin-button{min-height:42px;border:0;border-radius:999px;padding:0 16px;background:linear-gradient(135deg,#d6ae37,#f4d46f);color:#07172f;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 10px 22px rgba(161,118,18,.24);white-space:nowrap}
.pms-arrival-checkin-button:disabled{cursor:not-allowed;opacity:.58}
.pms-checkin-inline-error{margin:0 0 12px;padding:11px 13px;border:1px solid rgba(220,38,38,.28);border-radius:12px;background:#fee2e2;color:#991b1b;font-size:13px;font-weight:850}
@media(max-width:700px){.pms-missed-checkin-item{align-items:stretch!important;flex-wrap:wrap}.pms-arrival-checkin-button{width:100%;margin-top:8px}.pms-missed-checkin-warning{font-size:14px}}
