:root{--brand:#190c91;--brand-hover:#2716b4;--brand-soft:#eeecfc;--brand-soft-strong:#ddd8fb;--brand-focus:#190c9126;--brand-dark:#10075f;--on-brand:#fff;--ink:#202238;--muted:#74768b;--canvas:#f5f6fb}
html,body{height:100%}body{margin:0;background:var(--canvas);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden}
.topbar{height:76px;background:var(--brand);color:var(--on-brand);display:flex;align-items:center;justify-content:space-between;padding:0 32px;flex-shrink:0}
.brand{color:var(--on-brand);text-decoration:none;font-size:22px;font-weight:700;letter-spacing:-.5px}.brand:hover{color:var(--on-brand)}.brand span{font-weight:400;opacity:.75}
.account{display:flex;align-items:center;gap:24px}.shell{display:flex;height:calc(100vh - 76px);min-height:0;overflow:hidden}
.sidebar{width:248px;height:100%;background:white;padding:28px 16px;border-right:1px solid #e8e9f2;flex-shrink:0;overflow-y:auto;overflow-x:hidden}
.sidebar a{display:flex;align-items:center;gap:12px;padding:11px 14px;color:var(--ink);text-decoration:none;border-radius:10px;margin-bottom:4px;font-weight:600;font-size:14px;line-height:1.2;transition:background .15s ease,color .15s ease}
.sidebar a:hover{background:var(--brand-soft);color:var(--brand)}
.sidebar a.active{background:var(--brand-soft);color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.nav-icon{width:28px;height:28px;border-radius:8px;display:inline-grid;place-items:center;flex-shrink:0;background:#f3f4fa;color:#5b5f78}
.sidebar a:hover .nav-icon,.sidebar a.active .nav-icon{background:var(--brand-soft-strong);color:var(--brand)}
.nav-icon svg{width:16px;height:16px;display:block}
.nav-caption,.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--muted)}
.nav-caption{padding:0 14px;margin:0 0 12px}
.sidebar .nav-caption:not(:first-child){margin-top:20px;padding-top:17px;border-top:1px solid #eceef5}
main{padding:42px;flex:1;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}h1{font-size:30px;font-weight:650;letter-spacing:-.8px;margin-bottom:26px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.page-heading form{max-width:290px}.btn-primary{background:var(--brand);border-color:var(--brand)}.btn-primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.metrics article,.data-panel,.login-panel{background:white;border:1px solid #e7e8f0;border-radius:14px;padding:28px;box-shadow:0 5px 22px #25254b04}
.metrics p{color:var(--muted)}.metrics strong{display:block;font-size:42px;color:var(--brand);font-weight:650}.metrics span{font-size:13px;color:var(--muted)}.data-panel{overflow-x:auto}.table>:not(caption)>*>*{padding:18px 12px}.table thead{color:var(--muted);font-size:12px}.login-panel{max-width:460px;margin:60px auto}.login-panel h1{font-size:26px}.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 .2rem var(--brand-focus)}
@media(max-width:800px){.sidebar{width:188px}main{padding:22px}.metrics{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.topbar{padding:0 18px}.brand span{display:none}.sidebar a{padding:10px 12px;gap:10px;font-size:13px}.nav-icon{width:26px;height:26px}}
.filter-bar{display:flex;gap:12px;margin-bottom:20px}.filter-bar .form-control{max-width:420px}.filter-bar .form-select{max-width:130px}
.status{display:inline-block;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:650}.status.success{color:#126b37;background:#e8f7ee}.status.failure{color:#a52b2b;background:#fdecec}
.empty-state{padding:20px;color:var(--muted)}.pager,.detail-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.pager div{display:flex;gap:8px}
.back-link{display:inline-block;margin-bottom:18px;color:var(--brand);text-decoration:none}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.data-panel h2{font-size:17px;margin-bottom:20px}.data-panel dl{display:grid;grid-template-columns:140px 1fr;gap:12px}.data-panel dt{color:var(--muted);font-weight:500}.data-panel dd{margin:0}
@media(max-width:800px){.filter-bar{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}}
.form-panel{max-width:900px}.form-panel h2{font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.property-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 24px}.property-list label{padding:12px;border:1px solid #e7e8f0;border-radius:8px}.property-list small{display:block;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}
@media(max-width:800px){.form-grid,.property-list{grid-template-columns:1fr}}
.permission-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 22px}.permission-list label{padding:10px 12px;border:1px solid #e7e8f0;border-radius:8px}@media(max-width:800px){.permission-list{grid-template-columns:1fr}}
.health-word{font-size:30px!important}.table small{color:var(--muted)}
.property-logo-small{width:72px;height:40px;object-fit:contain}.logo-placeholder{display:flex;width:48px;height:40px;align-items:center;justify-content:center;border-radius:8px;background:var(--brand-soft);color:var(--brand);font-weight:700}.branding-panel{display:grid;grid-template-columns:320px 1fr;gap:36px;max-width:900px}.logo-preview{height:200px;border:1px dashed #cfd1df;border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#fafaff;padding:24px}.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}@media(max-width:800px){.branding-panel{grid-template-columns:1fr}}

.exception-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:16px;margin-bottom:22px}
.exception-metrics article{background:white;border:1px solid #e7e8f0;border-radius:12px;padding:18px}
.exception-metrics span{display:block;color:var(--muted);font-size:13px}
.exception-metrics strong{display:block;color:var(--brand);font-size:30px;margin-top:4px}
.exception-filters{flex-wrap:wrap}
.exception-list{display:grid;gap:14px}
.exception-card{background:white;border:1px solid #e4e5ee;border-left:4px solid #d94b4b;border-radius:12px;padding:20px 22px}
.exception-card.is-resolved{border-left-color:#2d9a5f;opacity:.82}
.exception-card-head,.exception-actions,.exception-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.exception-card-head>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.severity{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.5px;padding:4px 8px;border-radius:20px}
.severity.high{background:#fde8e8;color:#a92323}
.severity.medium{background:#fff2d8;color:#955c00}
.severity.low{background:#e9efff;color:#274b9f}
.exception-reference{font-size:12px;color:var(--muted)}
.exception-message{margin:14px 0 10px}
.exception-meta{justify-content:flex-start;color:var(--muted);font-size:12px;flex-wrap:wrap}
.exception-meta span+span:before{content:"•";margin-right:12px}
.exception-note{background:#f7f7fb;border-radius:8px;padding:10px 12px;margin-top:12px}
.exception-note p{margin:3px 0 0}
.exception-actions{justify-content:flex-start;margin-top:14px}
.exception-actions details{width:100%}
.exception-actions summary{display:inline-block;cursor:pointer;list-style:none}
.exception-edit{display:grid;grid-template-columns:150px minmax(180px,1fr) 150px;gap:12px;align-items:end;margin-top:14px;padding:16px;background:#f8f8fc;border-radius:10px}
.exception-edit label{font-size:12px;color:var(--muted)}
.exception-edit .note-field{grid-column:1/-1}
.exception-edit button{justify-self:start}
@media(max-width:800px){.exception-metrics{grid-template-columns:1fr}.exception-edit{grid-template-columns:1fr}.exception-edit .note-field{grid-column:auto}}

.dashboard-heading,.operations-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}
.dashboard-heading h1,.operations-heading h1{margin-bottom:8px}
.dashboard-tools,.operations-selector{display:flex;gap:10px;align-items:flex-end}
.dashboard-filter-form{display:flex;gap:10px}.dashboard-filter-form .period-select{width:150px}.dashboard-filter-form .property-select{width:220px}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:18px}
.dashboard-card{position:relative;min-height:190px;background:linear-gradient(145deg,#fff,#f8f8fd);border:1px solid #e4e5ef;border-radius:18px;padding:24px;overflow:hidden;box-shadow:0 12px 35px #1f1d4d0a}
.dashboard-card:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-35px;top:-45px;background:var(--brand-soft)}
.dashboard-card .card-kicker{font-size:11px;font-weight:750;letter-spacing:1.2px;color:var(--muted)}
.dashboard-card>strong{display:block;font-size:48px;line-height:1;margin:20px 0 10px;color:var(--brand)}
.dashboard-card p{color:var(--muted);margin-bottom:14px}
.dashboard-card a{color:var(--brand);font-weight:650;text-decoration:none}
.dashboard-card.positive{border-top:4px solid #22a866}.dashboard-card.positive>strong{color:#16824c}
.dashboard-card.warning{border-top:4px solid #efaa24}.dashboard-card.warning>strong{color:#9a6500}
.dashboard-card.danger{border-top:4px solid #d84a4a}.dashboard-card.danger>strong{color:#ae2929}
.dashboard-card.chart-card{min-height:280px}.dashboard-card.chart-card:after{display:none}
.dashboard-card.chart-wide{grid-column:span 2}
.chart-title{font-size:16px;font-weight:650;margin:10px 0 14px;color:var(--ink)}
.dashboard-chart{width:100%;max-width:100%;height:220px;display:block}.dashboard-chart[data-chart="bars"]{height:250px}
.dashboard-chart.chart-donut{height:180px;max-width:260px;margin:0 auto}
.chart-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:12px}
.legend-item{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.legend-item:before{content:"";width:8px;height:8px;border-radius:50%;background:#9a9cb0}
.legend-item.success:before{background:#22a866}.legend-item.danger:before{background:#d84a4a}
.chart-empty{color:var(--muted);margin:36px 0 12px}
.logo-file-input{display:flex;align-items:center;gap:0;width:100%;max-width:520px;border:1px solid #ced4da;border-radius:8px;background:#fff;overflow:hidden;cursor:pointer}
.logo-file-input input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.logo-file-button{flex:0 0 auto;padding:8px 14px;background:#e9ecef;border-right:1px solid #ced4da;font-size:14px;font-weight:600;color:#212529;white-space:nowrap}
.logo-file-name{flex:1 1 auto;padding:8px 12px;font-size:14px;color:#687189;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logo-file-input:hover .logo-file-button{background:#dde1e6}
.logo-file-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 .2rem #190c9119}
.property-config-menu .dropdown-item{border-radius:8px;padding:9px 12px;font-weight:600;color:var(--ink)}
.property-config-menu .dropdown-item:hover,.property-config-menu .dropdown-item:focus{background:var(--brand-soft);color:var(--brand)}
.property-config-menu .dropdown-divider{margin:6px 4px;border-color:#e8e9f2}
.property-list-panel{overflow:visible}.property-list-panel .table{margin-bottom:0}
.property-config-menu{min-width:190px;padding:7px;border:1px solid #e1e3ec;border-radius:11px;box-shadow:0 14px 35px rgba(32,34,56,.14)}
.property-config-menu .property-delete-action{display:flex;align-items:center;gap:8px;color:#c62828}
.property-config-menu .property-delete-action span{display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:15px;line-height:1}
.property-config-menu .property-delete-action:hover,.property-config-menu .property-delete-action:focus{color:#a51f1f;background:#fff0f0}
.property-delete-modal{overflow:hidden;border:0;border-radius:16px;box-shadow:0 24px 70px rgba(32,34,56,.24)}
.property-delete-modal .modal-header{padding:20px 22px;border-bottom:1px solid #ececf2}.property-delete-modal .modal-body{padding:22px}.property-delete-modal .modal-footer{padding:16px 22px;background:#fafafd;border-top:1px solid #ececf2}
.property-delete-heading{display:flex;align-items:center;gap:12px}.property-delete-heading h2{margin:0;color:var(--ink)}.property-delete-heading small{display:block;margin-top:2px;color:#a52b2b;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.property-delete-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#fdecec;color:#b42318;font-weight:800}
.property-delete-warning{margin:18px 0;padding:13px 15px;border-left:3px solid #d84a4a;border-radius:8px;background:#fff5f5;color:#7d2b2b;font-size:13px;line-height:1.45}
.property-delete-password label{font-weight:700}.property-delete-password small{display:block;margin-top:7px;color:var(--muted);font-size:12px}
.about-panel{max-width:520px}
.about-version{font-size:22px;font-weight:650;color:var(--brand)}
.dashboard-footer{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px;margin-top:20px}
.dashboard-editor{width:min(440px,100vw)!important}.widget-picker{display:grid;gap:10px}
.widget-choice{display:flex;align-items:center;gap:12px;border:1px solid #e2e3eb;border-radius:10px;padding:14px;cursor:grab;background:white}
.widget-choice.dragging{opacity:.45;border-color:var(--brand)}.widget-choice-label{display:flex;flex:1;justify-content:space-between;gap:12px;align-items:center}.widget-choice-label small{color:#74768b;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.drag-handle{color:#9b9caf;font-weight:900;letter-spacing:-2px}
.operations-selector label{font-size:12px;color:var(--muted);min-width:190px}.operations-selector input,.operations-selector select{margin-top:5px}
.operations-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(125deg,var(--brand-dark),var(--brand));color:var(--on-brand);border-radius:22px;padding:28px 34px;box-shadow:0 18px 42px var(--brand-focus);margin-bottom:20px}
.occupancy-summary{display:flex;align-items:center;gap:24px}.occupancy-summary h2{font-size:25px;margin:7px 0 2px}.occupancy-summary p,.occupancy-summary small{margin:0;opacity:.72}
.occupancy-ring{--occupancy:0;width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#63e5ad calc(var(--occupancy)*3.6deg),#ffffff2e 0);position:relative}
.occupancy-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:var(--brand-dark)}.occupancy-ring>div{position:relative;text-align:center}.occupancy-ring strong{display:block;font-size:27px}.occupancy-ring span{font-size:11px;opacity:.75}
.live-indicator{font-size:10px;font-weight:750;letter-spacing:1.3px}.live-indicator i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#54dda0;margin-right:5px;box-shadow:0 0 0 5px #54dda026}
.availability-highlight{text-align:right}.availability-highlight span{font-size:11px;letter-spacing:1.2px;opacity:.72}.availability-highlight strong{display:block;font-size:62px;line-height:1}.availability-highlight p{margin:5px 0 0;opacity:.7}
.operations-kpis{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:14px;margin-bottom:18px}.operations-kpis article{background:white;border:1px solid #e5e6ee;border-radius:14px;padding:18px}
.operations-kpis span,.movement-panel span{display:block;color:var(--muted);font-size:12px}.operations-kpis strong{display:block;font-size:30px;margin:5px 0}.operations-kpis small,.movement-panel small{color:var(--muted)}
.operations-kpis .available{border-top:3px solid #2469d8}.operations-kpis .clean{border-top:3px solid #23a866}.operations-kpis .attention{border-top:3px solid #efaa24}.operations-kpis .blocked{border-top:3px solid #d84a4a}
.movement-panel{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid #e5e6ee;border-radius:16px;margin-bottom:20px}
.movement-panel>div{padding:20px 22px;border-right:1px solid #ececf2}.movement-panel>div:last-child{border:0}.movement-panel strong{display:block;font-size:27px;margin:3px 0}.movement-alert{background:#fff8e8}
.room-board{background:white;border:1px solid #e4e5ee;border-radius:18px;padding:24px}.room-board-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.room-board h2{font-size:20px;margin:3px 0}
.room-filters{display:flex;gap:6px;flex-wrap:wrap}.room-filters button{border:0;background:#f0f1f6;color:#5f6175;border-radius:20px;padding:7px 12px;font-size:12px}.room-filters button.active{background:var(--brand);color:var(--on-brand)}
.room-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:11px}.room-tile{border:1px solid #e4e5ed;border-radius:12px;padding:14px;background:#fafafe}
.room-tile>div{display:flex;justify-content:space-between;gap:8px}.room-tile strong{font-size:18px}.room-tile p{margin:9px 0 2px;font-size:13px}.room-tile small{color:var(--muted);font-size:10px}.room-state{text-transform:uppercase;font-size:9px;font-weight:750;letter-spacing:.5px;padding:4px 6px;border-radius:10px;height:max-content}
.room-tile.available{border-color:#bce8d1;background:#f3fcf7}.room-tile.available .room-state{background:#d9f4e5;color:#157344}
.room-tile.occupied{border-color:#cbd9f5;background:#f4f7fd}.room-tile.occupied .room-state{background:#dfe9fb;color:#315a9d}
.room-tile.dirty{border-color:#e8c56a;background:#fff6d9}.room-tile.dirty .room-state{background:#ffe399;color:#8a5a00}
.room-tile.blocked{border-color:#efc4c4;background:#fff6f6}.room-tile.blocked .room-state{background:#f7dddd;color:#9e2929}
.room-tile.reserved .room-state{background:#ebe8fa;color:#4c3c9a}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}.dashboard-card.chart-wide{grid-column:span 2}.operations-kpis{grid-template-columns:repeat(3,1fr)}}
@media(min-width:801px) and (max-width:1180px){
    .sidebar{width:205px;padding:24px 12px}
    .sidebar a{padding:10px 12px;gap:10px;font-size:13px}
    .nav-icon{width:26px;height:26px}
    main{padding:28px}
    .topbar{padding:0 24px}
    .device-overview{grid-template-columns:1fr}
    .device-count{grid-template-columns:auto auto minmax(0,1fr);align-items:center;align-content:initial;padding:1rem 1.25rem}
    .device-count>span:not(.device-count-icon){grid-column:auto;margin-top:0}
    .device-count small{grid-column:2/-1;margin-top:.25rem}
    .connect-device-form{grid-template-columns:minmax(160px,.75fr) minmax(220px,1fr) auto}
    .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dashboard-card.chart-wide{grid-column:span 2}
    .operations-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.delivery-heading{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}.delivery-heading h1{margin:.15rem 0}.delivery-property-picker{min-width:260px}.delivery-property-picker label{display:grid;gap:.4rem;font-weight:700}.delivery-status-card{padding:1.4rem}.delivery-state-row{display:flex;justify-content:space-between;gap:1rem;align-items:start}.delivery-state-row h2{margin:.2rem 0}.delivery-state-row p{color:var(--text-muted);margin:.35rem 0}.delivery-pill{border-radius:999px;padding:.35rem .65rem;font-size:.72rem;font-weight:800;letter-spacing:.05em}.delivery-pill.online{background:#dcfce7;color:#166534}.delivery-pill.local{background:#e0e7ff;color:#3730a3}.delivery-empty{padding:2rem}@media(max-width:900px){.delivery-heading{align-items:stretch;flex-direction:column}.delivery-property-picker{min-width:0}}
@media(max-width:800px){.dashboard-heading,.operations-heading,.operations-hero,.room-board-heading{flex-direction:column}.dashboard-tools,.operations-selector{width:100%;flex-wrap:wrap}.dashboard-filter-form{flex-wrap:wrap}.dashboard-filter-form .property-select,.dashboard-filter-form .period-select{width:100%}.dashboard-grid,.operations-kpis,.movement-panel{grid-template-columns:1fr}.dashboard-card.chart-wide{grid-column:auto}.dashboard-footer{flex-direction:column}.availability-highlight{text-align:left}.movement-panel>div{border-right:0;border-bottom:1px solid #ececf2}}

/* Devices */
.devices-heading{display:flex;justify-content:space-between;gap:2rem;align-items:end;margin-bottom:1.25rem}.devices-heading h1{margin:.15rem 0 .4rem}.devices-heading .text-secondary{margin:0}.device-property-picker{min-width:280px}.device-property-picker label{display:block;margin-bottom:.4rem;font-size:.78rem;font-weight:750;color:var(--muted)}
.device-overview{display:grid;grid-template-columns:minmax(220px,250px) minmax(0,1fr);gap:1rem;margin-bottom:1rem}.device-count,.connect-device-form,.quick-connect-card{background:#fff;border:1px solid #e3e7f2;border-radius:16px;box-shadow:0 8px 26px rgba(25,12,145,.055)}.device-count{position:relative;padding:1.35rem;display:grid;grid-template-columns:auto 1fr;align-content:center;column-gap:.55rem;background:linear-gradient(145deg,var(--brand),var(--brand-dark));color:var(--on-brand);overflow:hidden}.device-count:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-45px;bottom:-55px;background:rgba(255,255,255,.1)}.device-count-icon{align-self:center;font-size:.55rem;color:#62dda0}.device-count strong{font-size:2.5rem;line-height:1}.device-count>span:not(.device-count-icon){grid-column:1/-1;font-size:.92rem;font-weight:700;margin-top:.35rem}.device-count small{grid-column:1/-1;opacity:.72;margin-top:.6rem}
.connect-device-form{padding:1.25rem;display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1.2fr) auto;gap:.9rem 1rem;align-items:end}.connect-device-form label{font-weight:700}.connect-device-form>button{white-space:nowrap}.connect-device-form small{display:block;color:#687189;font-weight:400;margin-top:.35rem;line-height:1.3}.connect-device-form .text-danger:first-child{grid-column:1/-1}.connect-device-heading{align-self:center}.connect-device-heading .eyebrow{margin:0 0 .25rem}.connect-device-heading strong{display:block;font-size:1.05rem}.connect-device-heading small{margin-top:.2rem}.device-address-settings{grid-column:1/-1;border-top:1px solid #e8eaf2;padding-top:.7rem}.device-address-settings>summary{width:max-content;cursor:pointer;color:var(--brand);font-size:.83rem;font-weight:750}.device-address-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:end;margin-top:.75rem}.device-api-address{display:flex;flex-direction:column;min-width:0}.device-api-address>span:first-child{font-size:.7rem;font-weight:800;letter-spacing:.09em;color:#687189}.device-api-address input{margin:.35rem 0;background:#fff}
.quick-connect-card{display:grid;grid-template-columns:300px minmax(0,1fr);gap:2rem;padding:1.5rem;margin-bottom:1rem;border-color:#cfd8ff;background:radial-gradient(circle at 15% 30%,#eef2ff 0,white 42%)}.qr-panel{display:flex;align-items:center;justify-content:center;padding:1rem;background:white;border-radius:14px;border:1px solid #dde3f2}.qr-panel svg{display:block;width:100%;height:auto}.quick-connect-copy{display:flex;flex-direction:column;justify-content:center}.quick-connect-copy h2{font-size:1.65rem;margin:.75rem 0}.expiry-line{display:inline-flex;align-items:center;gap:.4rem;width:max-content;padding:.5rem .75rem;border-radius:999px;background:var(--brand-soft);color:var(--brand)}.expiry-line.expired{background:#fff0f0;color:#b42318}.setup-code-details{margin-top:1rem}.setup-code-details summary{cursor:pointer;font-weight:700;color:var(--brand)}.copy-code-row{display:flex;gap:.6rem;margin-top:.75rem}.copy-code-row input{font-family:monospace;font-size:.76rem}.quick-connect-security{font-size:.83rem;color:#687189;margin-top:1rem}
.device-list-panel{margin-top:1rem}.device-list-count{padding:.32rem .62rem;border-radius:999px;background:#f2f3f8;color:var(--muted);font-size:.78rem;font-weight:750}.device-installation{display:block;color:#7a8296;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-viva-terminal-form{display:flex;gap:.4rem;align-items:center;min-width:220px}.device-viva-terminal-form .form-control{min-width:140px}.device-status{display:inline-flex;padding:.3rem .65rem;border-radius:999px;font-size:.78rem;font-weight:800}.device-status.active{background:#e9f9ef;color:#16753b}.device-status.revoked{background:#f1f2f5;color:#6d7380}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.panel-heading h2{margin:0;font-size:1.35rem}.device-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2.2rem 1rem;color:var(--muted)}.device-empty-state>span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:.75rem;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-size:1.5rem}.device-empty-state strong{color:var(--ink)}.device-empty-state p{margin:.3rem 0 0;font-size:.9rem}
.device-settings-card{display:block;margin:0 0 1rem;padding:0;overflow:hidden}.device-settings-card>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;cursor:pointer;list-style:none}.device-settings-card>summary::-webkit-details-marker{display:none}.device-settings-card>summary:after{content:"›";order:3;color:var(--muted);font-size:1.45rem;line-height:1;transform:rotate(90deg);transition:transform .18s ease}.device-settings-card[open]>summary:after{transform:rotate(-90deg)}.device-settings-card[open]>summary{border-bottom:1px solid #e8eaf2;background:#fafafe}.device-settings-summary-copy{display:flex;flex-direction:column;min-width:0}.device-settings-summary-copy strong{font-size:.96rem}.device-settings-summary-copy small{margin-top:.15rem;color:var(--muted);font-size:.8rem}.device-settings-body{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:2rem;align-items:start;padding:1.25rem}.device-pin-copy h2,.device-app-update-copy h2{margin:.2rem 0 .5rem}.device-pin-copy p:not(.eyebrow),.device-app-update-copy p:not(.eyebrow){color:#687189;max-width:540px}.device-pin-status{display:inline-flex;padding:.32rem .65rem;border-radius:999px;font-size:.75rem;font-weight:800}.device-pin-status.configured{background:#e9f9ef;color:#16753b}.device-pin-status.missing{background:#fff4df;color:#8a5a00}.device-pin-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:.35rem 0 .25rem}.device-pin-reveal{display:flex;flex-wrap:wrap;align-items:baseline;gap:.55rem .85rem;margin:.55rem 0 .35rem;padding:.7rem .9rem;background:#f6f7fb;border-radius:12px;border:1px solid #e8eaf2}.device-pin-reveal-label{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#687189}.device-pin-value{font-size:1.35rem;font-weight:750;letter-spacing:.18em;color:var(--ink)}.device-pin-copy small,.device-app-update-copy small{display:block;color:#687189}.device-pin-form{display:grid;grid-template-columns:140px minmax(130px,1fr) minmax(130px,1fr) auto;gap:.75rem;align-items:end}.device-pin-form label{font-weight:700}.device-pin-form>small{grid-column:1/-1;color:#687189}.device-pin-clear{margin:0}.device-app-update-copy small{margin-top:.35rem}.device-app-update-notes{margin-top:.75rem;padding:.75rem 1rem;background:#f6f7fb;border-radius:12px;color:#445;font-size:.92rem}.device-app-update-form{display:grid;grid-template-columns:140px 160px minmax(180px,1fr) auto;gap:.75rem;align-items:end}.device-app-update-form label{font-weight:700}.device-app-update-form>small{grid-column:1/-1;color:#687189}.device-app-update-file,.device-app-update-notes-field{grid-column:1/-1}
.device-settings-card>summary>.device-pin-status{margin-left:auto}
@media(max-width:950px){.device-overview,.quick-connect-card,.device-settings-body{grid-template-columns:1fr}.connect-device-form{grid-template-columns:1fr}.connect-device-heading{margin-bottom:.25rem}.device-address-content,.device-pin-form,.device-app-update-form{grid-template-columns:1fr}.devices-heading{align-items:stretch;flex-direction:column}.device-property-picker{min-width:0}.qr-panel{max-width:340px}}
.brand{display:inline-flex;align-items:center;gap:11px}.brand img{width:44px;height:44px;border-radius:11px;border:1px solid rgba(255,255,255,.42);box-shadow:0 5px 16px rgba(5,2,55,.2)}.brand span{font-weight:650;opacity:1;font-size:20px;letter-spacing:-.3px}@media(max-width:800px){.brand span{display:inline}}
.brand span strong{font-weight:400;opacity:.78}

.brand img{object-fit:contain;background:#fff}.brand-copy{display:flex!important;flex-direction:column;align-items:flex-start;gap:0;line-height:1.05}.brand-copy b{font-size:19px;font-weight:750;letter-spacing:-.35px}.brand-copy small{font-size:11px;font-weight:500;opacity:.74;letter-spacing:.02em;margin-top:4px}.branding-settings-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(320px,1.15fr);gap:20px;max-width:1050px}.branding-settings-grid>section:last-child{grid-column:2}.brand-preview{min-height:126px;border-radius:14px;padding:22px;background:var(--brand);color:var(--on-brand);display:flex;align-items:center;gap:14px}.brand-preview img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:13px}.brand-preview div{display:flex;flex-direction:column;line-height:1.05}.brand-preview strong{font-size:23px}.brand-preview small{font-size:13px;opacity:.75;margin-top:6px}@media(max-width:800px){.branding-settings-grid{grid-template-columns:1fr}.branding-settings-grid>section:last-child{grid-column:auto}.brand-copy{display:flex!important}}
/* Combined check-in activity */
.section-tabs{display:flex;gap:8px;margin:4px 0 18px;border-bottom:1px solid #dfe2ec}
.section-tabs a{position:relative;padding:10px 16px 12px;color:#646b80;text-decoration:none;font-weight:700;border-radius:10px 10px 0 0}
.section-tabs a:hover{color:var(--brand);background:#f7f7fc}
.section-tabs a.active{color:var(--brand);background:#fff}
.section-tabs a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--brand)}

/* Login availability & signing-in state */
.login-lead{color:var(--muted);margin-bottom:22px}
.login-panel.is-unavailable{border-color:#e2e4ee;box-shadow:none}
.login-status{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:12px;margin:0 0 18px;border:1px solid #e4e6f0;background:#f8f8fc}
.login-status--offline{border-color:#ead7d7;background:#fcf6f6}
.login-status strong{display:block;font-size:15px;color:var(--ink);margin-bottom:4px}
.login-status p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.login-status__icon{width:10px;height:10px;border-radius:50%;margin-top:6px;flex-shrink:0;background:#b42318;box-shadow:0 0 0 6px #b4231814}
.login-validation:not(:empty){margin-bottom:14px;padding:12px 14px;border-radius:10px;background:#fcf6f6;border:1px solid #ead7d7;color:#8f1f1f;font-size:14px}
.login-busy{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(32,34,56,.42);backdrop-filter:blur(4px);animation:login-busy-fade .22s ease}
.login-busy[hidden]{display:none!important}
.login-busy__card{width:min(340px,calc(100vw - 40px));background:#fff;border:1px solid #e7e8f0;border-radius:18px;padding:32px 28px;text-align:center;box-shadow:0 24px 60px rgba(25,12,145,.18);animation:login-busy-rise .28s ease}
.login-busy__card strong{display:block;font-size:18px;color:var(--ink);margin:18px 0 6px}
.login-busy__card p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.login-busy__spinner{width:42px;height:42px;margin:0 auto;border-radius:50%;border:3px solid #e8e9f4;border-top-color:var(--brand);animation:login-spin .75s linear infinite}
body.is-signing-in{overflow:hidden}
@keyframes login-spin{to{transform:rotate(360deg)}}
@keyframes login-busy-fade{from{opacity:0}to{opacity:1}}
@keyframes login-busy-rise{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.login-busy,.login-busy__card,.login-busy__spinner{animation:none}}

/* Property Protel connection settings */
.connection-layout{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(320px,1.05fr);gap:22px;max-width:1100px;align-items:start}
.connection-review__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.connection-review h2,.connection-editor h2{font-size:18px;margin-bottom:8px}
.connection-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:0}
.connection-facts div{margin:0}.connection-facts dt{color:var(--muted);font-size:12px;font-weight:650;margin-bottom:4px}.connection-facts dd{margin:0;font-weight:600;word-break:break-word}
.connection-preview{margin-top:18px;padding:14px 16px;border-radius:12px;background:#f7f7fb;border:1px solid #e7e8f0}
.connection-preview span{display:block;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.connection-preview code{display:block;white-space:pre-wrap;word-break:break-word;font-size:13px;color:var(--ink)}
.connection-note{margin:16px 0 0;padding:12px 14px;border-radius:10px;background:#f7f7fb;color:var(--muted);font-size:14px}
.connection-input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.45}
.form-hint{font-size:13px;color:var(--muted);margin-bottom:0}
.connection-form .form-actions{justify-content:flex-start;margin-top:18px}
.connection-property-list{margin:0;padding-left:1.1rem;font-size:13px;line-height:1.45}
.connection-property-list li{margin:2px 0}
.connection-scope{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);font-size:12px;font-weight:650;letter-spacing:.01em}
.connection-actions-menu{min-width:210px}
.connection-actions-menu form{margin:0}
.connection-actions-menu .dropdown-item{width:100%;text-align:left;border:0;background:transparent}
@media(max-width:900px){.connection-layout,.connection-facts{grid-template-columns:1fr}}

/* Check-in registration PDF */
.pdf-panel__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.pdf-panel__head h2{margin-bottom:6px}
/* Interactive dashboard cards and statistics */
.dashboard-card.interactive-card{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;transform-origin:center;will-change:transform}
.dashboard-card.interactive-card:hover{transform:translateY(-4px) scale(1.018);border-color:#cbc7ea;box-shadow:0 20px 45px rgba(31,29,77,.14);z-index:2}
.dashboard-card.interactive-card:focus-visible{outline:3px solid rgba(36,105,216,.35);outline-offset:3px;transform:translateY(-3px) scale(1.012)}
.statistics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}
.statistics-heading h1{margin-bottom:8px}
.statistics-filters{align-self:flex-end}
.statistics-summary{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:16px;margin-bottom:18px}
.statistics-summary article{background:white;border:1px solid #e4e5ef;border-radius:14px;padding:18px 22px;box-shadow:0 8px 24px rgba(31,29,77,.05)}
.statistics-summary span{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}
.statistics-summary strong{font-size:30px;color:var(--brand)}
.statistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.statistics-chart{min-height:340px;scroll-margin-top:24px}
.statistics-chart.statistics-focus{border-color:#2469d8;box-shadow:0 0 0 3px rgba(36,105,216,.12),0 16px 38px rgba(31,29,77,.11)}
.statistics-chart .chart-title{font-size:18px}
@media(max-width:1000px){.statistics-grid{grid-template-columns:1fr}}
@media(max-width:800px){.statistics-heading{flex-direction:column}.statistics-filters{align-self:stretch;width:100%}.statistics-summary{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.dashboard-card.interactive-card{transition:none}.dashboard-card.interactive-card:hover,.dashboard-card.interactive-card:focus-visible{transform:none}}




.topbar .btn-outline-light{color:var(--on-brand);border-color:var(--on-brand)}.topbar .btn-outline-light:hover{background:var(--on-brand);border-color:var(--on-brand);color:var(--brand)}
.delivery-mode-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.hit-protel-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:1.5rem;align-items:end;margin-bottom:1rem;padding:1.4rem}.hit-protel-panel h2{margin:.2rem 0}.hit-protel-panel p{margin:.35rem 0}.hit-protel-form{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:.75rem;align-items:end}.hit-protel-form label{display:grid;gap:.4rem;font-weight:700}@media(max-width:1050px){.hit-protel-panel,.hit-protel-form{grid-template-columns:1fr}}

/* Hotel group / hotel page headers */
.hierarchy-hero{display:grid;grid-template-columns:minmax(300px,1fr) auto;gap:24px;align-items:center;margin-bottom:22px;padding:22px 24px;border:1px solid #dedff0;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8f7ff 55%,var(--brand-soft) 100%);box-shadow:0 14px 38px rgba(31,29,77,.07)}
.hierarchy-hero__copy h1{margin:.15rem 0 .65rem}.hierarchy-hero__copy p:last-child{max-width:650px;margin:0;color:var(--muted);line-height:1.6}
.hotel-definition{display:grid;grid-template-columns:auto auto;gap:7px 14px;padding:14px 16px;border:1px solid #e0e2ec;border-radius:14px;background:rgba(255,255,255,.88)}.hotel-definition span{color:var(--muted);font-size:.78rem}.hotel-definition strong{font-size:.82rem}

.group-list-panel{padding:0;overflow:hidden}.group-panel-heading{margin:0;padding:21px 24px;border-bottom:1px solid #ececf2}.group-panel-heading .eyebrow{margin:0 0 4px}.group-panel-heading h2{margin:0 0 4px}.group-table,.hotel-table{margin:0}.group-table thead th,.hotel-table thead th{padding:12px 18px;background:#fafafd;color:#74788a;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase}.group-table tbody td,.hotel-table tbody td{padding:16px 18px;border-color:#eff0f5}
.group-name-cell,.hotel-name-cell{display:flex;align-items:center;gap:12px}.group-name-cell strong,.group-name-cell small,.hotel-name-cell strong,.hotel-name-cell small,.group-database,.group-server{display:block}.group-name-cell small,.hotel-name-cell small,.group-server{margin-top:3px;color:var(--muted);font-size:.75rem}.group-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:.67rem;font-weight:850;letter-spacing:.04em}.group-database{font-size:.88rem}.group-count,.mpe-badge,.hotel-status,.mapping-missing{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:750}.group-count,.mpe-badge{background:var(--brand-soft);color:var(--brand)}.group-count.is-empty,.mapping-missing{background:#fff4df;color:#8a5a00}.group-hotel-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.group-hotel-chips span{padding:3px 7px;border-radius:7px;background:#f4f5f8;color:#5e6372;font-size:.67rem}.hotel-status.active{background:#e9f9ef;color:#16753b}.hotel-status.inactive{background:#f1f2f5;color:#6d7380}.hotel-public-id{padding:4px 7px;border-radius:6px;background:#f5f5f8;color:#4d5361;font-size:.76rem}.group-empty-state{display:flex;flex-direction:column;align-items:center;padding:42px 20px;text-align:center;color:var(--muted)}.group-empty-state>span{display:grid;place-items:center;width:46px;height:46px;margin-bottom:12px;border-radius:14px;background:var(--brand-soft);color:var(--brand);font-size:1.4rem}.group-empty-state strong{color:var(--ink)}.group-empty-state p{margin:5px 0 14px}
.group-editor,.hotel-editor{display:grid;grid-template-columns:minmax(250px,.65fr) minmax(380px,1.35fr);gap:34px;max-width:1100px;padding:26px}.group-editor__intro h2{margin:.2rem 0 .65rem}.group-editor__intro>p:not(.eyebrow){color:var(--muted);line-height:1.55}.group-editor__form{padding-left:32px;border-left:1px solid #e5e6ef}.group-security-note{display:flex;flex-direction:column;margin-top:20px;padding:13px 15px;border-radius:11px;background:#eef9f2;color:#23643b}.group-security-note span{margin-top:3px;font-size:.75rem}.form-grid-span{grid-column:1/-1}.group-management-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(145deg,#fff,var(--brand-soft))}
.mpe-selection-panel{max-width:1100px}.mpe-selection-copy{max-width:740px}.mpe-selection-copy h2{margin:.2rem 0 .5rem}.mpe-current{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px 16px;border:1px solid #e1e3ed;border-radius:12px;background:#fafafd}.mpe-current span{color:var(--muted);font-size:.8rem}.mpe-current strong{color:var(--brand)}.mpe-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end;max-width:720px}.mpe-form label{font-weight:700}
@media(max-width:1050px){.hierarchy-hero{grid-template-columns:1fr}.group-editor,.hotel-editor{grid-template-columns:1fr}.group-editor__form{padding-left:0;border-left:0;border-top:1px solid #e5e6ef;padding-top:24px}}
@media(max-width:760px){.hotel-definition{width:100%}.group-panel-heading{align-items:stretch;flex-direction:column}.group-panel-heading .btn{width:100%}.mpe-form{grid-template-columns:1fr}}

.hotel-group-picker{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,.8fr);gap:32px;align-items:center;margin-bottom:18px;padding:22px 26px;border-color:#d9daeb}.hotel-group-picker__copy h2{margin:.2rem 0 .4rem;font-size:1.25rem}.hotel-group-picker__copy p:last-child{margin:0;color:var(--muted)}.hotel-group-picker__field{padding:14px 16px;border-radius:13px;background:#f7f7fb}.hotel-group-picker__field label{font-weight:750}.hotel-selection-empty{display:flex;flex-direction:column;align-items:center;padding:42px 20px;text-align:center;color:var(--muted)}.hotel-selection-empty>span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border-radius:13px;background:var(--brand-soft);color:var(--brand);font-size:1.2rem;font-weight:800}.hotel-selection-empty strong{color:var(--ink)}.hotel-selection-empty p{margin:5px 0 0}.hotel-table tr.d-none{display:none!important}@media(max-width:800px){.hotel-group-picker{grid-template-columns:1fr;gap:18px}}

.collapsible-hotel-editor{display:block;max-width:1100px;padding:0;overflow:hidden}.hotel-editor__summary{display:flex;align-items:center;gap:13px;padding:17px 20px;cursor:pointer;list-style:none;background:#fff}.hotel-editor__summary::-webkit-details-marker{display:none}.hotel-editor__summary:after{content:"›";margin-left:auto;color:var(--brand);font-size:1.5rem;line-height:1;transform:rotate(90deg);transition:transform .18s ease}.collapsible-hotel-editor[open] .hotel-editor__summary:after{transform:rotate(-90deg)}.collapsible-hotel-editor[open] .hotel-editor__summary{border-bottom:1px solid #e7e8f0;background:#fafafe}.hotel-editor__summary-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:1.2rem}.hotel-editor__summary>span:nth-child(2){display:flex;flex-direction:column}.hotel-editor__summary small{color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.08em}.hotel-editor__summary strong{margin-top:1px;font-size:.95rem}.hotel-editor__summary span span{margin-top:2px;color:var(--muted);font-size:.76rem}.hotel-editor__body{display:grid;grid-template-columns:minmax(250px,.65fr) minmax(380px,1.35fr);gap:34px;padding:26px}.collapsible-hotel-editor:not([open]){box-shadow:0 7px 20px rgba(31,29,77,.045)}@media(max-width:1050px){.hotel-editor__body{grid-template-columns:1fr}}@media(max-width:620px){.hotel-editor__summary span span{display:none}.hotel-editor__body{padding:20px}}

.active-hotel-picker{display:flex;align-items:center;gap:8px}.active-hotel-picker label{margin:0;font-size:.7rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;opacity:.75}.active-hotel-picker select{min-width:190px;max-width:280px;padding:7px 30px 7px 10px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:var(--brand-dark);color:var(--on-brand);font-size:.82rem;font-weight:650}.active-hotel-picker select:focus{outline:2px solid rgba(255,255,255,.55);outline-offset:2px}@media(max-width:800px){.active-hotel-picker label{display:none}.active-hotel-picker select{min-width:120px;max-width:160px}.account>span{display:none}}

/* Group-first hotel selectors */
.hotel-cascade{display:flex;align-items:flex-end;gap:.65rem}
.hotel-cascade-field{display:grid;gap:.35rem;min-width:190px;margin:0}
.hotel-cascade-field>span{font-size:.72rem;font-weight:750;letter-spacing:.04em;color:var(--muted)}
.hotel-cascade.is-single .hotel-cascade-field{min-width:240px}
.active-hotel-picker .hotel-cascade{gap:.45rem}
.active-hotel-picker .hotel-cascade-field{min-width:150px}
.active-hotel-picker .hotel-cascade-field>span{color:var(--on-brand);opacity:.78;text-transform:uppercase;font-size:.62rem}
.active-hotel-picker .hotel-cascade-field select{min-width:150px;max-width:220px;padding:7px 30px 7px 10px;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:var(--brand-dark);color:var(--on-brand);font-size:.8rem;font-weight:650}
.active-hotel-picker .hotel-cascade-field select:disabled{opacity:.58}
@media(max-width:900px){.hotel-cascade{flex-wrap:wrap}.hotel-cascade-field{flex:1;min-width:150px}.active-hotel-picker .hotel-cascade-field>span{display:none}.active-hotel-picker .hotel-cascade-field{min-width:110px}.active-hotel-picker .hotel-cascade-field select{min-width:110px;max-width:150px}}

/* Keep Hotel group row actions above the page instead of trapping them in a nested scroll area. */
.group-list-panel{overflow:visible;position:relative;z-index:2}
.group-list-panel .table-responsive{overflow:visible}
.group-list-panel .connection-actions-menu{z-index:1080;box-shadow:0 14px 36px rgba(31,29,77,.18)}
.group-editor{position:relative;z-index:1}
.active-hotel-picker .hotel-cascade{flex-wrap:nowrap}
.active-hotel-picker .hotel-cascade-field{min-width:140px}
.active-hotel-picker .hotel-cascade-field select{width:156px;min-width:0;max-width:none}
@media(max-width:1050px){
  .active-hotel-picker .hotel-cascade-field{min-width:120px}
  .active-hotel-picker .hotel-cascade-field select{width:135px}
}

/* System health */
.health-hero{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.35rem;padding:25px 28px;border:1px solid #dedff0;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8f7ff 58%,var(--brand-soft) 100%);box-shadow:0 14px 38px rgba(31,29,77,.06)}
.health-hero h1{margin:.15rem 0 .45rem}
.health-hero>div:first-child>p:last-child{max-width:650px;margin:0;color:var(--muted)}
.health-overall{display:flex;align-items:center;gap:.8rem;min-width:275px;padding:15px 18px;border:1px solid #dfe4e8;border-radius:14px;background:rgba(255,255,255,.84)}
.health-overall__dot{width:12px;height:12px;flex:0 0 12px;border-radius:50%}
.health-overall.is-online .health-overall__dot{background:#20a866;box-shadow:0 0 0 6px rgba(32,168,102,.12)}
.health-overall.is-offline .health-overall__dot{background:#dc4141;box-shadow:0 0 0 6px rgba(220,65,65,.12)}
.health-overall div{display:flex;flex-direction:column}
.health-overall small{color:var(--muted);font-size:.63rem;font-weight:800;letter-spacing:.07em}
.health-overall strong{margin:.12rem 0;font-size:1rem}
.health-overall span{color:var(--muted);font-size:.74rem}
.health-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:1.15rem}
.health-summary article{padding:17px 20px;border:1px solid #e1e3ed;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(31,29,77,.035)}
.health-summary article>span,.health-summary article>small{display:block;color:var(--muted);font-size:.76rem}
.health-summary strong{display:block;margin:.2rem 0;font-size:1.65rem;color:var(--brand);line-height:1.15}
.health-summary strong small{font-size:.8rem;font-weight:700;color:var(--muted)}
.health-summary strong.is-good{color:#188653}.health-summary strong.is-bad{color:#bf3131}
.health-hotels-panel{padding:0;overflow:visible}
.health-panel-heading{margin:0;padding:20px 24px;border-bottom:1px solid #ececf2}
.health-panel-heading .eyebrow{margin:0 0 4px}.health-panel-heading h2{margin:0 0 3px}.health-panel-heading p:last-child{margin:0;color:var(--muted);font-size:.85rem}
.health-hotel-count{padding:6px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:.75rem;font-weight:800}
.health-table-wrap{overflow-x:auto}
.health-table{margin:0;min-width:980px}
.health-table thead th{padding:12px 18px;background:#fafafd;color:#74788a;font-size:.68rem;letter-spacing:.055em;text-transform:uppercase}
.health-table tbody td{padding:15px 18px;border-color:#eff0f5}
.health-hotel-name{display:flex;align-items:center;gap:11px}
.health-hotel-name>span{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:.78rem;font-weight:850}
.health-hotel-name div{display:flex;flex-direction:column}.health-hotel-name small{margin-top:2px;color:var(--muted);font-size:.73rem}
.health-connection-status{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;font-weight:750}
.health-connection-status i{width:8px;height:8px;border-radius:50%}
.health-connection-status.configured{color:#16753b}.health-connection-status.configured i{background:#2aad68}
.health-connection-status.missing{color:#9a6200}.health-connection-status.missing i{background:#e9a323}
.health-time{color:#474c5d;font-size:.81rem;white-space:nowrap}
.health-empty-state{padding:40px 20px;text-align:center;color:var(--muted)}.health-empty-state strong{display:block;color:var(--ink)}.health-empty-state p{margin:.35rem 0 0}
@media(max-width:900px){.health-hero{align-items:stretch;flex-direction:column}.health-overall{min-width:0}.health-summary{grid-template-columns:1fr}}

/* Hotels list actions should use the page scroll, not a nested table scrollbar. */
.property-list-panel{position:relative;z-index:2}
.property-list-panel .table-responsive{overflow:visible}
.property-list-panel .property-config-menu{z-index:1080;box-shadow:0 14px 36px rgba(31,29,77,.18)}
.collapsible-hotel-editor{position:relative;z-index:1}

/* One compact Hotel group editor opened by the Add or Edit action. */
.collapsible-group-editor{display:block;max-width:1100px;padding:0;overflow:hidden;position:relative;z-index:1}
.group-editor-summary{display:flex;align-items:center;gap:13px;padding:17px 20px;cursor:pointer;list-style:none;background:#fff}
.group-editor-summary::-webkit-details-marker{display:none}
.group-editor-summary:after{content:"›";margin-left:auto;color:var(--brand);font-size:1.5rem;line-height:1;transform:rotate(90deg);transition:transform .18s ease}
.collapsible-group-editor[open] .group-editor-summary:after{transform:rotate(-90deg)}
.collapsible-group-editor[open] .group-editor-summary{border-bottom:1px solid #e7e8f0;background:#fafafe}
.group-editor-summary>span:nth-child(2){display:flex;flex-direction:column}
.group-editor-summary small{color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.08em}
.group-editor-summary strong{margin-top:1px;font-size:.95rem}
.group-editor-summary span span{margin-top:2px;color:var(--muted);font-size:.76rem}
.group-editor-body{max-width:none;padding:26px}
.collapsible-group-editor:not([open]){box-shadow:0 7px 20px rgba(31,29,77,.045)}
@media(max-width:620px){.group-editor-summary span span{display:none}.group-editor-body{padding:20px}}
