.pms-guest-action-buttons{display:flex;gap:8px;flex-wrap:wrap}.pms-guest-action-buttons button{border:0;border-radius:10px;padding:8px 11px;font-weight:900;cursor:pointer;background:#e8f2f7;color:#08263d}.pms-guest-action-buttons button.danger{background:#fee2e2;color:#b91c1c}.pms-guest-action-buttons button:disabled{opacity:.45;cursor:not-allowed}.pms-guest-actions-cell small{display:block;max-width:220px;margin-top:6px;color:#b45309;font-size:11px;font-weight:800;line-height:1.35}.pms-guest-action-overlay[hidden]{display:none!important}.pms-guest-action-overlay{position:fixed;inset:0;z-index:100000;background:rgba(5,20,30,.68);display:grid;place-items:center;padding:16px}.pms-guest-action-modal{width:min(720px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.3);padding:0}.pms-guest-action-modal header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #e5e7eb}.pms-guest-action-modal h2{margin:0;color:#08263d}.pms-guest-action-modal header p{margin:5px 0 0;color:#64748b;font-size:12px}.pms-guest-close{border:0;background:#eef2f7;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}.pms-guest-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 22px}.pms-guest-form-grid label{display:grid;gap:7px;font-weight:900;color:#334155}.pms-guest-form-grid input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:11px 12px;font:inherit}.pms-guest-msg{min-height:18px;margin:0 22px;color:#b91c1c;font-weight:800}.pms-guest-action-modal footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 22px;border-top:1px solid #e5e7eb}.pms-guest-action-modal footer button{border:0;border-radius:10px;padding:10px 16px;font-weight:900;cursor:pointer}.pms-guest-action-modal footer button.primary{background:#0b6b57;color:#fff}@media(max-width:760px){.pms-guest-form-grid{grid-template-columns:1fr}.pms-guest-actions-cell{min-width:180px}.pms-guest-action-buttons{justify-content:flex-start}}
/* V2 desktop fit: keep the Guests table inside the visible content area. */
@media (min-width:901px){
  .guests-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .guests-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
  .guests-table th,.guests-table td{min-width:0!important;padding-left:12px!important;padding-right:12px!important}
  .guests-table th:nth-child(1),.guests-table td:nth-child(1){width:26%!important}
  .guests-table th:nth-child(2),.guests-table td:nth-child(2){width:18%!important}
  .guests-table th:nth-child(3),.guests-table td:nth-child(3){width:12%!important}
  .guests-table th:nth-child(4),.guests-table td:nth-child(4){width:7%!important}
  .guests-table th:nth-child(5),.guests-table td:nth-child(5){width:9%!important}
  .guests-table th:nth-child(6),.guests-table td:nth-child(6){width:10%!important}
  .guests-table th:nth-child(7),.guests-table td:nth-child(7){width:10%!important}
  .guests-table th:nth-child(8),.guests-table td:nth-child(8){width:8%!important}
  .guests-table td:nth-child(1),.guests-table td:nth-child(2),.guests-table td:nth-child(3){white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .guests-table td:nth-child(4),.guests-table td:nth-child(5),.guests-table td:nth-child(6),.guests-table td:nth-child(7){white-space:nowrap!important}
  .pms-guest-actions-head,.pms-guest-actions-cell{width:auto!important;max-width:none!important}
  .pms-guest-action-buttons{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important}
  .pms-guest-action-buttons button{width:100%!important;min-width:0!important;padding:6px 6px!important;border-radius:8px!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important}
  .pms-guest-actions-cell small{display:none!important}
}

/* V3 desktop no-horizontal-scroll fix for Guests. */
@media (min-width:901px){
  .guests-page{max-width:100%!important;overflow-x:hidden!important;padding-left:18px!important;padding-right:18px!important}
  .guests-page .guests-table-card{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .guests-page .guests-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:visible!important}
  .guests-page .guests-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
  .guests-page .guests-table th,
  .guests-page .guests-table td{min-width:0!important;max-width:none!important;padding:12px 8px!important;font-size:12px!important;overflow:hidden!important}

  .guests-page .guests-table th:nth-child(1),.guests-page .guests-table td:nth-child(1){width:25%!important}
  .guests-page .guests-table th:nth-child(2),.guests-page .guests-table td:nth-child(2){width:16%!important}
  .guests-page .guests-table th:nth-child(3),.guests-page .guests-table td:nth-child(3){width:10%!important}
  .guests-page .guests-table th:nth-child(4),.guests-page .guests-table td:nth-child(4){width:6%!important}
  .guests-page .guests-table th:nth-child(5),.guests-page .guests-table td:nth-child(5){width:9%!important}
  .guests-page .guests-table th:nth-child(6),.guests-page .guests-table td:nth-child(6){width:9%!important}
  .guests-page .guests-table th:nth-child(7),.guests-page .guests-table td:nth-child(7){width:10%!important}
  .guests-page .guests-table th:nth-child(8),.guests-page .guests-table td:nth-child(8){width:15%!important}

  .guests-page .guest-name-cell{min-width:0!important;gap:8px!important}
  .guests-page .guest-name-cell>div:last-child{min-width:0!important;overflow:hidden!important}
  .guests-page .guest-name-cell strong{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important}
  .guests-page .guest-name-cell span{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important}
  .guests-page .guest-avatar{width:34px!important;height:34px!important;font-size:12px!important}

  .guests-page .guests-table td:nth-child(2),
  .guests-page .guests-table td:nth-child(3){white-space:nowrap!important;text-overflow:ellipsis!important}
  .guests-page .guests-table td:nth-child(4),
  .guests-page .guests-table td:nth-child(5),
  .guests-page .guests-table td:nth-child(6),
  .guests-page .guests-table td:nth-child(7){white-space:nowrap!important}

  .guests-page .pms-guest-actions-head,
  .guests-page .pms-guest-actions-cell{white-space:normal!important;overflow:visible!important}
  .guests-page .pms-guest-action-buttons{display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important}
  .guests-page .pms-guest-action-buttons button{width:100%!important;min-width:0!important;padding:6px 4px!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap!important}
  .guests-page .pms-guest-actions-cell small{display:none!important}
}

/* V4: hard desktop fit. Fixes the actual parent width chain and guarantees no horizontal scrollbar. */
@media (min-width:901px){
  html,body,#root{max-width:100%;overflow-x:hidden!important}
  .dashboard-v4,.dashboard-layout,.dashboard-shell{max-width:100vw!important;overflow-x:hidden!important}
  .dashboard-main,.dashboard-v4-main{min-width:0!important;width:auto!important;max-width:calc(100vw - 300px)!important;overflow-x:hidden!important;box-sizing:border-box!important}
  .guests-page{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important;padding-left:16px!important;padding-right:16px!important}
  .guests-page .guests-table-card{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
  .guests-page .guests-table-wrap{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:hidden!important}
  .guests-page .guests-table{min-width:0!important;width:100%!important;max-width:100%!important;table-layout:fixed!important;box-sizing:border-box!important}
  .guests-page .guests-table th,.guests-page .guests-table td{box-sizing:border-box!important;min-width:0!important;padding:12px 7px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .guests-page .guests-table th:nth-child(1),.guests-page .guests-table td:nth-child(1){width:27%!important}
  .guests-page .guests-table th:nth-child(2),.guests-page .guests-table td:nth-child(2){width:16%!important}
  .guests-page .guests-table th:nth-child(3),.guests-page .guests-table td:nth-child(3){width:10%!important}
  .guests-page .guests-table th:nth-child(4),.guests-page .guests-table td:nth-child(4){width:7%!important}
  .guests-page .guests-table th:nth-child(5),.guests-page .guests-table td:nth-child(5){width:8%!important}
  .guests-page .guests-table th:nth-child(6),.guests-page .guests-table td:nth-child(6){width:10%!important}
  .guests-page .guests-table th:nth-child(7),.guests-page .guests-table td:nth-child(7){width:10%!important}
  .guests-page .guests-table th:nth-child(8),.guests-page .guests-table td:nth-child(8){width:12%!important}
  .guests-page .pms-guest-actions-head{font-size:10px!important;letter-spacing:.02em!important;white-space:normal!important}
  .guests-page .pms-guest-actions-cell{overflow:visible!important}
  .guests-page .pms-guest-action-buttons{display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important}
  .guests-page .pms-guest-action-buttons button{width:100%!important;min-width:0!important;max-width:100%!important;padding:5px 3px!important;font-size:10px!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .guests-page .pms-guest-actions-cell small{display:none!important}
}
@media (min-width:901px) and (max-width:1250px){
  .dashboard-main,.dashboard-v4-main{max-width:calc(100vw - 250px)!important}
  .guests-page{padding-left:10px!important;padding-right:10px!important}
  .guests-page .guests-table th,.guests-page .guests-table td{padding-left:5px!important;padding-right:5px!important;font-size:11px!important}
}
