.v9 .nav #room-submenu{padding:2px 0 7px 26px;display:grid;gap:3px}.v9 .nav #room-submenu[hidden]{display:none}.v9 .nav #room-submenu button{font-size:14px;line-height:1.4;min-height:34px;padding:8px 10px;margin:0;border:0;border-radius:7px;text-align:left;color:#b9cbed;white-space:normal}.v9 .nav #room-submenu button.selected{background:#ffffff12;color:#fff;border-left:2px solid #3384ff}
.rooms-page{color:#152039;min-width:0}.rooms-page h2{font-size:21px;margin:0 0 8px;font-weight:600}.rooms-page h3{font-size:18px;font-weight:600;margin:0}.rooms-page .g-card{border:1px solid #dee0ec;border-radius:18px;box-shadow:0 6px 18px #081c6906;padding:18px;min-width:0}.rooms-page button,.rooms-page select{font-family:inherit}.r-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.r-heading p,.r-muted{font-size:15px;color:#7b8398;margin:6px 0 16px}.r-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.r-stats button{text-align:left;position:relative;padding-left:34px!important}.r-stats strong{display:block;font-size:28px;margin-bottom:6px}.r-stats span:not(.r-stat-line){font-size:15px;color:#778098}.r-stat-line{position:absolute;left:15px;top:16px;bottom:16px;width:7px;border-radius:8px;background:#e9edff}.r-stats .selected{border-color:#174dff}.r-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px;align-items:center}.r-filters input,.r-filters select,.r-title select{background:white;border:1px solid #dee0ec;border-radius:9px;min-height:38px;color:#6b748a;font-size:15px;padding:9px 12px;max-width:100%}.r-filters input{flex:1;min-width:200px}.r-status-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:22px;align-items:start}.r-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.r-room-tile{background:white;border:1px solid #e1e3e8;border-radius:12px;padding:15px;text-align:left;min-width:0;transition:border-color .15s,box-shadow .15s}.r-room-tile:hover,.r-category:hover{border-color:#6c8eff;box-shadow:0 3px 12px #144bff0a}.r-room-tile.selected{border-color:#174dff;box-shadow:0 0 0 1px #174dff}.r-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.r-title strong{font-size:23px}.r-room-tile small{font-size:15px;color:#7b8398}.r-room-tile p{margin:12px 0 5px;font-size:17px}.r-badge{display:inline-block;font-size:13px;font-weight:500;line-height:1.4;padding:4px 10px;border-radius:20px;white-space:nowrap;background:#f0f0ff;color:#2348c0}.rs0{background:#edfcf5;color:#057852}.rs1{background:#f0f0ff;color:#2348c0}.rs2{background:#fff7e8;color:#c2470a}.rs3{background:#fff2f2;color:#b81212}.r-purple{background:#f7f0ff;color:#7d21bf}.r-cyan{background:#ebfcff;color:#087385}.r-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.r-detail{position:sticky;top:18px}.r-detail h2{font-size:27px}.r-detail h3{margin:24px 0 12px}.r-detail strong{font-size:17px}.r-pairs{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px;margin:22px 0}.r-pairs dt{font-size:14px;color:#7b8398;margin-bottom:6px}.r-pairs dd{font-size:16px;margin:0;overflow-wrap:anywhere}.r-actions{display:flex;flex-direction:column;gap:9px;margin-top:18px}.r-actions.inline{flex-direction:row;flex-wrap:wrap;margin-top:10px}.r-tabs{display:flex;padding:4px;background:#edf2ff;border-radius:10px;gap:4px}.r-tabs button{padding:10px 16px;border-radius:8px;font-size:16px;color:#64728e}.r-tabs button.active{background:#174dff;color:white}.r-list-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);gap:20px;align-items:start}.r-catalogue{display:grid;gap:14px;margin-top:20px}.r-category{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;text-align:left;border:1px solid #dee0ec;border-radius:14px;padding:14px;background:white;color:inherit;width:100%}.r-category.selected{background:#f7f9ff;border-color:#aec2ff}.r-category img{width:140px;height:130px;object-fit:cover;border-radius:8px;display:block}.r-category p{font-size:15px;line-height:1.5;color:#758096;margin:9px 0}.r-category small{color:#7b8398;font-size:14px}.r-price{font-size:22px;text-align:right;margin:8px 0}.r-facts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;color:#576279;margin:12px 0}.r-facts span{padding:2px 0}.r-photo-button{display:block;width:100%;padding:0;text-align:left}.r-hero{width:100%;height:200px;object-fit:cover;display:block;border-radius:10px;margin:16px 0}.r-description{font-size:16px;line-height:1.7}.r-check-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;font-size:15px;line-height:1.6}.r-check-list li:before{content:'✓';color:#174dff;margin-right:7px}.r-detail progress{height:6px;width:100%;accent-color:#174dff}.r-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.r-stack{display:grid;gap:20px;align-content:start}.r-stack .g-card{display:grid;gap:18px}.rooms-page .field{display:grid;gap:7px;color:#7b8398;font-size:15px}.rooms-page .field input,.rooms-page .field select,.rooms-page .field textarea{border:1px solid #dce1ef;border-radius:10px;background:#fff;color:#182238;padding:10px 12px;width:100%;font:14px/1.5 inherit;min-height:40px}.rooms-page textarea{resize:vertical}.rooms-page fieldset{border:0;padding:0;margin:0;min-width:0}.rooms-page legend{font-size:15px;color:#7b8398;margin-bottom:8px}.r-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.r-options label{display:flex;align-items:center;gap:8px;border:1px solid #dee0ec;border-radius:9px;padding:10px;font-size:15px;min-width:0}.r-options input[type=checkbox],.r-options input[type=radio]{width:15px;height:15px;accent-color:#174dff;flex-shrink:0}.r-options input[type=number]{width:46px;min-width:35px;padding:2px;border:0;background:transparent;margin-left:auto}.r-options input:disabled{visibility:hidden}.r-tariff{font-size:15px;line-height:1.7;background:#f6f8ff;padding:12px;border-radius:9px}.r-upload{border:1px dashed #cbd5f1;background:#f8faff;min-height:170px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border-radius:12px;text-align:center;padding:22px}.r-upload p{margin:0}.r-upload input{position:absolute;width:1px;height:1px;opacity:0}.r-upload label{cursor:pointer}.r-upload label:focus-within{outline:3px solid #a6c7ff;outline-offset:3px}.r-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.r-thumbs>div{position:relative}.r-thumbs img{width:100%;height:90px;object-fit:cover;border-radius:8px}.r-thumbs button:first-child{width:100%;padding:3px;border:1px solid #dee0ec;border-radius:10px}.r-thumbs button.selected{border-color:#174dff}.r-thumbs button:last-child:not(:first-child){position:absolute;right:7px;top:7px;background:white;border-radius:50%;width:22px;height:22px}.r-thumbs small{font-size:13px;color:#174dff}.r-auto-photo{width:100%;height:160px;object-fit:cover;border-radius:10px}.r-form-footer{display:flex;gap:10px;justify-content:flex-end;margin:20px 0}.r-preview-photo,.r-gallery img{width:100%;height:auto;max-height:65vh;object-fit:contain;border-radius:10px}.r-gallery{display:grid;gap:12px}.g-modal .r-detail{position:static;box-shadow:none;border:0;padding:0}.r-empty{padding:35px;text-align:center;color:#778098}.rooms-page .form-note{font-size:14px;line-height:1.6;color:#8991a3;margin-top:18px}#r-form-error{color:#b81212}.rooms-page :focus-visible{outline:3px solid #90b4ff;outline-offset:2px}

.r-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.r-property-strip{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;padding:14px 16px;margin:0 0 18px;border:1px solid #dee0ec;border-radius:14px;background:#fff}.r-property-strip span,.r-property-strip small{font-size:14px;color:#7b8398}.r-property-strip strong{font-size:17px;overflow-wrap:anywhere}.r-structure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.r-building-card{display:grid;gap:16px}.r-building-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.r-building-head>div:first-child{min-width:0;flex:1}.r-building-head h2,.r-floor-row strong{overflow-wrap:anywhere;word-break:break-word}.r-building-description{font-size:15px;line-height:1.6;color:#5f6980;margin:8px 0 0;white-space:pre-wrap}.r-structure-counts{display:flex;gap:10px;flex-wrap:wrap}.r-structure-counts span{font-size:15px;color:#69748b;background:#f7f9ff;border-radius:999px;padding:7px 11px}.r-structure-counts strong{color:#182238}.r-floor-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.r-floor-list{display:grid;gap:8px}.r-floor-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e3e6ef;border-radius:10px;padding:10px 12px;background:#fbfcff}.r-floor-row>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}.r-floor-row .r-actions{margin-top:0}.r-modal-fields{display:grid;gap:14px}.r-room-table-wrap{overflow:auto;width:100%;border:1px solid #e1e4ec;border-radius:12px}.r-room-table{width:100%;border-collapse:collapse;min-width:720px;font-size:15px}.r-room-table th,.r-room-table td{padding:11px 12px;text-align:left;border-bottom:1px solid #eceef4;vertical-align:middle}.r-room-table th{font-size:14px;color:#7b8398;background:#f8faff;font-weight:600}.r-room-table td{color:#33405a}.r-room-table tr:last-child td{border-bottom:0}.r-room-table td[title]{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r-room-link{font-weight:600!important;padding:0!important}
@media(min-width:1600px){.r-room-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1200px){.r-category{grid-template-columns:100px minmax(0,1fr);gap:12px}.r-category img{width:100px;height:110px}.r-list-layout{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.r-options{grid-template-columns:1fr}.r-stats strong{font-size:25px}}@media(max-width:760px){.r-status-layout,.r-list-layout,.r-form-grid,.r-structure-grid{grid-template-columns:1fr}.r-detail{position:static}.r-stats{grid-template-columns:repeat(3,1fr)}.r-heading{align-items:stretch;flex-direction:column}.r-heading-actions{justify-content:flex-start}.r-tabs{width:fit-content}.r-form-grid .r-options{grid-template-columns:1fr 1fr}.r-heading .fig-primary{align-self:flex-start}.r-list-layout .r-detail{order:2}}@media(max-width:460px){.r-building-head,.r-floor-row{align-items:stretch;flex-direction:column}.r-floor-row .r-actions.inline{justify-content:flex-start}.r-room-grid{grid-template-columns:1fr}.r-stats{grid-template-columns:repeat(2,1fr)}.r-stats button{padding:12px 10px 12px 25px!important}.r-stat-line{left:10px}.r-category{grid-template-columns:84px minmax(0,1fr);padding:10px;gap:10px}.r-category img{width:84px;height:100px}.r-category h3{font-size:17px}.r-category .r-badge{font-size:12px}.r-form-grid .r-options{grid-template-columns:1fr}.r-tabs button{font-size:15px;padding:9px}.r-filters select{flex:1;min-width:100px}.r-title select{width:100%}}


/* Rooms catalogue refinement: category counts, full room list, category-style building master/detail. */
.r-category-meta{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.r-count-badge{background:#eef3ff;color:#2348c0}
.r-room-list-full{min-width:0}
.r-individual-catalogue{margin-top:14px}
.r-room-list-full .r-room-table-wrap{max-height:none}
.r-room-table th:last-child,.r-room-table td:last-child{white-space:nowrap;width:1%}
.r-building-list-item{grid-template-columns:140px minmax(0,1fr);align-items:stretch}
.r-building-thumb{width:140px;height:130px;border-radius:8px;background:#f2f5ff;border:1px solid #dbe3ff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#174dff}
.r-building-thumb strong{font-size:33px;line-height:1}
.r-building-thumb small{font-size:14px;color:#6d7890}
.r-building-list-item p{min-height:36px}
.r-structure-layout .r-detail{min-width:0}
.r-building-detail .r-floor-head{margin-top:24px}
.r-building-detail .r-floor-list{margin-top:12px}
.r-building-detail .r-actions.inline{margin-top:10px}
@media(max-width:1200px){.r-building-list-item{grid-template-columns:100px minmax(0,1fr)}.r-building-thumb{width:100px;height:110px}.r-building-thumb strong{font-size:28px}}
@media(max-width:460px){.r-building-list-item{grid-template-columns:84px minmax(0,1fr)}.r-building-thumb{width:84px;height:100px}.r-category-meta{justify-content:flex-start}}

.r-service-table-tags{margin-top:0;min-width:150px;align-items:center}
.r-service-table-tags .r-badge{white-space:nowrap}


/* Rooms desktop workbench: same viewport/master-detail behavior as Guests → Reservations. */
@media(min-width:901px){
  .rooms-workspace{
    height:100dvh;
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
  }
  .figma-section .rooms-workspace .dashboard-header{
    margin-bottom:0;
  }
  .rooms-workspace>.rooms-page{
    min-height:0;
    height:100%;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding-top:10px;
    padding-bottom:8px;
  }
  .rooms-workspace>.rooms-page>.form-note{
    display:none;
  }
  .rooms-workspace>.dashboard-footer{
    padding:8px 18px;
    min-height:34px;
  }

  .rooms-workspace .r-heading{
    flex:0 0 auto;
    margin-bottom:10px;
  }
  .rooms-workspace .r-heading p{
    margin:4px 0 0;
  }
  .rooms-workspace .r-filters{
    flex:0 0 auto;
    margin:0 0 10px;
    gap:8px;
  }

  /* Room-status KPIs match Guests / Reservations height. */
  .rooms-workspace .r-stats{
    flex:0 0 auto;
    gap:8px;
    margin-bottom:10px;
  }
  .rooms-workspace .r-stats>.g-card{
    height:78px;
    min-height:78px;
    padding:9px 11px 9px 31px!important;
    border-radius:12px;
    overflow:hidden;
  }
  .rooms-workspace .r-stats strong{
    font-size:23px;
    line-height:1;
    margin-bottom:5px;
  }
  .rooms-workspace .r-stats span:not(.r-stat-line){
    font-size:13px;
    line-height:1.2;
  }
  .rooms-workspace .r-stat-line{
    left:12px;
    top:12px;
    bottom:12px;
    width:6px;
  }

  /* Shared right-rail proportion for Rooms master/detail pages. */
  .rooms-workspace .r-status-layout,
  .rooms-workspace .r-list-layout{
    grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);
    gap:14px;
    align-items:stretch;
    flex:1 1 auto;
    min-height:0;
    height:auto;
    overflow:hidden;
  }
  .rooms-workspace .r-detail{
    position:static;
    min-height:0;
    height:100%;
    max-height:none;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }

  /* Status: left list scrolls, right room detail remains in place. */
  .rooms-workspace .r-status-layout>section:first-child{
    min-height:0;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .rooms-workspace .r-status-layout>section:first-child>h2,
  .rooms-workspace .r-status-layout>section:first-child>.r-muted{
    flex:0 0 auto;
  }
  .rooms-workspace .r-status-layout>section:first-child>.r-muted{
    margin:2px 0 8px;
  }
  .rooms-workspace .r-room-grid{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:3px;
    align-content:start;
  }

  /* Categories and Buildings & Floors: only the master catalogue scrolls. */
  .rooms-workspace .r-list-layout>section:first-child{
    min-height:0;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .rooms-workspace .r-list-layout>section:first-child>.r-title{
    flex:0 0 auto;
  }
  .rooms-workspace .r-list-layout>section:first-child>.r-catalogue{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    margin-top:12px;
    padding-right:3px;
    align-content:start;
  }

  /* Individual room list fills the remaining viewport and owns its scrollbar. */
  .rooms-workspace .r-room-list-full{
    flex:1 1 auto;
    min-height:0;
    height:auto;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .rooms-workspace .r-room-list-full>.r-title{
    flex:0 0 auto;
  }
  .rooms-workspace .r-individual-catalogue{
    flex:1 1 auto;
    min-height:0;
    overflow:hidden;
    margin-top:12px;
  }
  .rooms-workspace .r-room-list-full .r-room-table-wrap{
    height:100%;
    max-height:none;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .rooms-workspace .r-room-table thead th{
    position:sticky;
    top:0;
    z-index:3;
    background:#f8faff;
  }

  /* Structure header stays compact so the catalogue gets the available height. */
  .rooms-workspace .r-property-strip{
    flex:0 0 auto;
    padding:10px 14px;
    margin:0 0 10px;
  }
}
@media(min-width:901px) and (max-width:1150px){
  .rooms-workspace .r-status-layout,
  .rooms-workspace .r-list-layout{
    grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);
    gap:12px;
  }
  .rooms-workspace .r-room-grid{
    grid-template-columns:1fr;
  }
}
