*{box-sizing:border-box}body{margin:0;background:#f4f7fa;color:#1e293b;font:15px system-ui,-apple-system,Segoe UI,sans-serif}.wrap{max-width:1100px;margin:0 auto;padding:22px}header{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;background:#102d42;color:white;border-radius:12px;margin-bottom:24px}header span{font-size:12px;color:#b9cedc}.card{background:white;border:1px solid #e0e6ed;border-radius:12px;padding:24px;margin:14px 0;box-shadow:0 3px 12px #11223309}.auth{max-width:430px;margin:50px auto}label{display:block;font-weight:600;margin:14px 0 6px}input,button{font:inherit;padding:11px;border-radius:8px}input{width:100%;border:1px solid #bac6d2}button,.btn{background:#0d665b;color:white;border:0;cursor:pointer;display:inline-block;text-decoration:none;padding:11px 16px;border-radius:8px}.btn.secondary{background:#334155}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px}.stat{font-size:30px;font-weight:700}.muted{color:#64748b}.error{color:#b42318}.success{color:#087443}nav{display:flex;gap:12px;flex-wrap:wrap}footer{color:#64748b;text-align:center;margin:30px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:11px;border-bottom:1px solid #e5e7eb}@media(max-width:600px){.wrap{padding:10px}.card{padding:17px}header{padding:16px}}
select{font:inherit;padding:11px;border:1px solid #bac6d2;border-radius:8px;width:100%;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 16px}.mini-stat{border:1px solid #e0e6ed;border-radius:10px;padding:14px}.table-scroll{overflow-x:auto}.inline-form{display:flex;align-items:center;gap:6px;min-width:340px}.inline-form select{min-width:135px}.inline-form input{min-width:125px}.inline-form button{white-space:nowrap}@media(max-width:600px){.inline-form{min-width:310px}}
@media print{body{background:#fff;color:#111}.wrap{max-width:none;padding:0}header,footer,.no-print{display:none!important}.card{border:0;box-shadow:none;padding:0}.receipt{font-size:12px}.receipt h2{font-size:21px}table{page-break-inside:auto}tr{page-break-inside:avoid}}


/* Sapphire Cloud ERP v1.2.2: isolated, responsive navigation */
:root{--sapphire-navy:#102d42;--sapphire-teal:#0d665b;--sapphire-pale:#eaf5f3;--sapphire-side:244px}
body.has-sidebar{background:#f4f7fa;color:#1e293b;min-height:100vh}
body.has-sidebar .app-topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:15px;width:100%;height:66px;min-height:66px;margin:0;padding:0 22px;border:0;border-radius:0;background:var(--sapphire-navy);color:#fff;box-shadow:0 2px 8px #102d421c}
body.has-sidebar .topbar-title{display:flex;align-items:baseline;gap:14px;min-width:0;flex:1}
body.has-sidebar .topbar-title strong{font-size:17px;white-space:nowrap;color:#fff}
body.has-sidebar .topbar-title small{color:#c6dce5;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.has-sidebar .topbar-version{color:#c6dce5;font-size:12px;margin-left:auto;flex:none}
body.has-sidebar .menu-toggle,body.has-sidebar .sidebar-close{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:40px;min-height:40px;padding:7px 10px;border:1px solid #ffffff66;border-radius:8px;background:transparent;color:#fff;font-size:21px;line-height:1;cursor:pointer}
body.has-sidebar .menu-toggle:hover,body.has-sidebar .sidebar-close:hover{background:#ffffff20}
body.has-sidebar .sapphire-sidebar{position:fixed;z-index:35;left:0;top:66px;bottom:0;width:var(--sapphire-side);margin:0;padding:0;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;background:#fff;border-right:1px solid #dce7ec;box-shadow:2px 0 10px #102d4209;transition:transform .2s ease}
body.has-sidebar .sidebar-brand{display:none}
body.has-sidebar nav.sidebar-links{display:flex;flex:1;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:5px;padding:14px 10px;margin:0;width:100%}
body.has-sidebar .sidebar-link,body.has-sidebar .sidebar-group>summary{display:flex;align-items:center;gap:12px;flex:none;min-height:44px;width:100%;margin:0;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#243d4b;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;cursor:pointer;list-style:none}
body.has-sidebar .sidebar-link:hover,body.has-sidebar .sidebar-group>summary:hover{background:var(--sapphire-pale);color:var(--sapphire-teal)}
body.has-sidebar .sidebar-link.active{background:var(--sapphire-pale);color:var(--sapphire-teal);box-shadow:inset 3px 0 var(--sapphire-teal)}
body.has-sidebar .sidebar-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px;height:23px;color:var(--sapphire-teal);font-size:19px}
body.has-sidebar .sidebar-group{display:block;width:100%;margin:0}
body.has-sidebar .sidebar-group>summary::-webkit-details-marker{display:none}
body.has-sidebar .sidebar-chevron{margin-left:auto;color:#6d8390}
body.has-sidebar .sidebar-group[open] .sidebar-chevron{transform:rotate(180deg)}
body.has-sidebar .sidebar-sub{display:flex;flex-direction:column;margin:2px 0 4px 33px;padding-left:7px;border-left:2px solid #d9eae7}
body.has-sidebar .sidebar-sub .sidebar-link{min-height:38px;font-size:13px}
body.has-sidebar .sidebar-bottom{display:block;flex:none;border-top:1px solid #e5edf0;padding:10px}
body.has-sidebar .app-content{display:block;width:auto;max-width:none;min-height:calc(100vh - 66px);margin:0 0 0 var(--sapphire-side);padding:22px 26px;transition:margin-left .2s ease}
body.has-sidebar.sidebar-collapsed .sapphire-sidebar{transform:translateX(-100%)}
body.has-sidebar.sidebar-collapsed .app-content{margin-left:0}
body.has-sidebar .sidebar-overlay{display:none}
body.has-sidebar .card{box-shadow:0 3px 12px #11223309}
@media(max-width:850px){body.has-sidebar .app-topbar{padding:0 12px;height:60px;min-height:60px}body.has-sidebar .topbar-title{display:flex;flex-direction:column;align-items:flex-start;gap:0}body.has-sidebar .topbar-title strong{font-size:15px}body.has-sidebar .topbar-title small{font-size:11px}body.has-sidebar .sapphire-sidebar{top:0;z-index:65;transform:translateX(-100%);box-shadow:5px 0 22px #102d4240}body.has-sidebar .sidebar-brand{display:flex;align-items:center;justify-content:space-between;background:var(--sapphire-navy);color:#fff;padding:12px;font-weight:700}body.has-sidebar.sidebar-open .sapphire-sidebar{transform:translateX(0)}body.has-sidebar.sidebar-open .sidebar-overlay{display:block;position:fixed;inset:0;z-index:60;background:#081b2c99}body.has-sidebar .app-content,body.has-sidebar.sidebar-collapsed .app-content{margin-left:0;padding:12px}body.has-sidebar .topbar-version{font-size:11px}}
@media print{body.has-sidebar .app-topbar,body.has-sidebar .sapphire-sidebar,body.has-sidebar .sidebar-overlay{display:none!important}body.has-sidebar .app-content,body.has-sidebar.sidebar-collapsed .app-content{margin:0!important;padding:0!important}}

/* v1.2.3 compact dashboard and account/version in the top right */
body.has-sidebar .topbar-account{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:none;min-width:0;margin-left:auto}
body.has-sidebar .topbar-username{font-size:12px;font-weight:600;color:#fff;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.has-sidebar .topbar-account .topbar-version{margin-left:0;padding-left:14px;border-left:1px solid #ffffff55}
body.has-sidebar .app-content>.grid:first-child{margin-top:0}
@media(max-width:600px){body.has-sidebar .topbar-account{gap:7px}body.has-sidebar .topbar-username{max-width:95px;font-size:11px}body.has-sidebar .topbar-account .topbar-version{padding-left:7px}}

/* v1.2.4 single-line resort header */
body.has-sidebar .app-topbar{display:grid;grid-template-columns:minmax(155px,1fr) minmax(0,1.3fr) minmax(175px,1fr);gap:12px;align-items:center}
body.has-sidebar .topbar-left{display:flex;align-items:center;gap:13px;min-width:0}
body.has-sidebar .topbar-panel{font-size:18px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.has-sidebar .topbar-company{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;font-size:17px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden}
body.has-sidebar .topbar-company span:last-child{overflow:hidden;text-overflow:ellipsis}
body.has-sidebar .company-logo{width:42px;height:42px;object-fit:contain;flex:none;border-radius:5px}
body.has-sidebar .company-logo-placeholder{font-size:25px;color:#b5ded7}
body.has-sidebar .topbar-account{margin-left:0;gap:12px}
body.has-sidebar .topbar-logout{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff77;border-radius:8px;color:#fff;text-decoration:none;flex:none}
body.has-sidebar .topbar-logout:hover{background:#ffffff22}
body.has-sidebar .s4-footer{display:flex;align-items:center;justify-content:center;gap:20px;width:min(760px,100%);margin:35px auto 10px;padding:18px 24px;border:1px solid #dce7ec;border-radius:13px;background:#edf4f5;color:#102d42;text-align:left}
body.has-sidebar .s4-footer img{width:94px;height:94px;object-fit:contain;flex:none}
.s4-footer strong{font-size:20px}.s4-footer small{color:#637987}
@media(max-width:850px){body.has-sidebar .app-topbar{grid-template-columns:minmax(90px,1fr) minmax(0,1.1fr) auto;gap:6px;padding:0 9px}body.has-sidebar .topbar-panel{font-size:14px}body.has-sidebar .topbar-left{gap:6px}body.has-sidebar .topbar-company{gap:4px;font-size:12px}body.has-sidebar .company-logo{width:30px;height:30px}body.has-sidebar .topbar-username{display:none}body.has-sidebar .topbar-account{gap:5px}body.has-sidebar .topbar-account .topbar-version{padding-left:0;border:0;font-size:10px}body.has-sidebar .topbar-logout{width:32px;height:34px}}
@media(max-width:450px){body.has-sidebar .topbar-panel{font-size:12px}body.has-sidebar .menu-toggle{min-width:34px;min-height:34px;padding:4px}body.has-sidebar .topbar-company{font-size:11px}body.has-sidebar .company-logo{width:25px;height:25px}body.has-sidebar .s4-footer{gap:10px;padding:12px}body.has-sidebar .s4-footer img{width:65px;height:65px}body.has-sidebar .s4-footer strong{font-size:16px}}
@media print{body.has-sidebar .s4-footer{display:none!important}}

/* v1.2.5 room management popup layout */
.room-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.room-toolbar h2{margin:0}.room-toolbar-actions{display:flex;gap:9px;flex-wrap:wrap}.room-overview .grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.room-list-card{margin-top:14px}.room-modal[hidden]{display:none!important}.room-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px}.room-modal-backdrop{position:absolute;inset:0;background:#081b2caa}.room-modal-panel{position:relative;background:#fff;border-radius:14px;padding:24px;width:min(720px,100%);max-height:calc(100vh - 36px);overflow-y:auto;box-shadow:0 20px 65px #0004}.room-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e0e6ed;padding-bottom:10px}.room-modal-head h3{margin:0}.room-modal-close{font-size:26px;line-height:1;background:transparent;color:#102d42;padding:5px 10px}.room-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.room-modal-open{overflow:hidden}@media(max-width:600px){.room-toolbar-actions{width:100%}.room-toolbar-actions button{flex:1;font-size:13px;padding:10px}.room-modal-panel{padding:16px}.room-modal-actions button{flex:1}}

/* v1.2.6 Booking Manager: list-first page and scrollable reservation dialog */
.booking-toolbar-card{padding:16px 24px;margin-bottom:14px}.booking-toolbar{justify-content:flex-start;margin-bottom:0}.booking-toolbar h2{margin:0;font-size:21px}.booking-modal-panel{width:min(1040px,100%);max-height:calc(100dvh - 36px)}.booking-modal-panel .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.booking-modal-panel label{display:block;margin-bottom:5px}.booking-modal-panel input,.booking-modal-panel select{width:100%;min-width:0}.booking-modal-panel .room-modal-actions{position:sticky;bottom:-24px;background:#fff;padding:12px 0 0;border-top:1px solid #e0e6ed}@media(max-width:900px){.booking-modal-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.booking-modal-panel .form-grid{grid-template-columns:1fr}.booking-toolbar{align-items:flex-start}.booking-toolbar h2{font-size:18px}.booking-modal-panel .room-modal-actions{bottom:-16px}}

/* v1.2.7 consistent toolbar layout */
.booking-toolbar{justify-content:space-between}.user-overview{padding:20px 24px}.user-overview .room-toolbar{margin-bottom:0}.user-overview:has(.success) .room-toolbar{margin-bottom:14px}

/* v1.2.8: compact footer and close panel action */
body.has-sidebar .topbar-close{width:34px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid #ffffff77;border-radius:8px;color:#fff;cursor:pointer;flex:none;padding:0}
body.has-sidebar .topbar-close:hover:not(:disabled){background:#ffffff22}
body.has-sidebar .topbar-close:disabled{opacity:.38;cursor:default}
body.has-sidebar .s4-footer.s4-footer-compact{width:max-content;max-width:100%;gap:9px;margin:24px auto 8px;padding:8px 13px;border-radius:9px}
body.has-sidebar .s4-footer.s4-footer-compact img{width:32px;height:32px}
body.has-sidebar .s4-footer.s4-footer-compact strong{font-size:13px}
@media(max-width:850px){body.has-sidebar .topbar-close{width:30px;height:34px}}

/* Reception v1.3.0 */
.reception-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.reception-stats>div{border:1px solid #d9e4ea;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:6px}.reception-stats small{color:#5c7080}.reception-stats strong{font-size:26px;color:#102d42}.reception-actions{min-width:165px}.reception-actions form{margin:7px 0}.reception-actions details{margin:7px 0}.reception-actions details form{padding:8px;background:#f3f7f9;border-radius:8px}.reception-actions input,.reception-actions select{max-width:200px}.reception-actions summary{cursor:pointer;color:#08695c}#reception-table td small{display:block;margin-top:4px;color:#617386}#reception-table tr[hidden]{display:none}@media(max-width:850px){.reception-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Sapphire Reception v1.3.1 */
.reception-header .room-toolbar{margin-bottom:0}.reception-workspace{padding:18px 20px}.reception-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid #dce6ed;padding-bottom:12px}.reception-tab{background:#edf3f4;color:#123248;border:1px solid #d8e3e6;border-radius:9px;padding:10px 13px;font-size:13px}.reception-tab.active{background:#08695c;color:white}.reception-tab-content{padding:16px 0}.reception-tab-content[hidden],.reception-records[hidden]{display:none!important}.reception-records{margin-top:5px}.reception-entry-modal{width:min(1240px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:20px 22px}.reception-entry-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:18px;align-items:start;margin-top:15px}.reception-entry-fields{min-width:0}.reception-section-title{margin:13px 0 11px;background:#eff5f8;border:1px solid #dce6ed;border-radius:7px;padding:8px 11px;color:#143852;font-size:14px}.reception-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.reception-fields-grid label{display:block;font-size:12px;font-weight:600;margin-bottom:5px}.reception-fields-grid input,.reception-fields-grid select,.reception-fields-grid textarea{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #bccbd5;border-radius:7px;font:inherit}.reception-summary{position:sticky;top:0;background:#fffaf0;border:1px solid #e6cf9c;border-radius:11px;padding:15px;box-shadow:0 5px 18px #16334d0c}.reception-summary-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.reception-summary-title h4{margin:0;font-size:16px}.reception-expand{background:transparent;color:#0f3449;border:1px solid #cbd6da;padding:4px 10px;font-size:22px}.reception-summary-rows>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #e4d8c0;padding:11px 0;font-size:13px}.reception-summary-rows strong{white-space:nowrap}.reception-summary-total{font-weight:700}.reception-summary-due{color:#a3540a;font-weight:800;font-size:16px!important}.reception-summary-note{font-size:11px;color:#687a86;line-height:1.5}.reception-save{width:100%}.reception-summary.expanded{position:fixed;z-index:110;inset:8vh auto auto 50%;transform:translateX(-50%);width:min(540px,calc(100vw - 30px));max-height:84vh;overflow:auto;box-shadow:0 0 0 100vmax #091c2abf,0 20px 60px #0004;padding:25px}.reception-summary.expanded .reception-summary-rows>div{padding:16px 0;font-size:16px}.reception-entry-modal .room-modal-actions{border-top:1px solid #e0e6ed;padding-top:12px}#reception-mobile-summary{display:none;position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:105;box-shadow:0 8px 25px #0003}@media(max-width:900px){.reception-entry-layout{grid-template-columns:minmax(0,1fr)}.reception-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reception-summary:not(.expanded){display:none}#reception-mobile-summary:not([hidden]){display:block}.reception-entry-modal{padding:14px}}@media(max-width:560px){.reception-fields-grid{grid-template-columns:1fr}.reception-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.reception-tab{padding:9px 6px}.reception-entry-modal{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}}

/* Sapphire Reception v1.3.2: inline room status and compact header */
.reception-header{padding-top:18px;padding-bottom:18px}.reception-room-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.reception-room-card{min-width:0;background:#fff;border:1px solid #d8e4df;border-left:4px solid #279e65;border-radius:11px;padding:16px 14px;display:flex;flex-direction:column;gap:11px;min-height:145px}.reception-room-top{display:flex;justify-content:space-between;gap:8px;align-items:start}.reception-room-top strong{font-size:15px;color:#102d42}.reception-room-top span{font-size:12px;color:#536777;text-align:right}.reception-room-status{font-size:12px;font-weight:700;color:#24465b}.reception-room-rate{font-size:18px;font-weight:750;color:#102d42}.reception-room-rate small{font-size:11px;font-weight:400}.reception-room-note,.reception-room-next{font-size:12px;color:#617789}.reception-room-next{border-top:1px dashed #d9e4e7;padding-top:8px}.reception-room-occupied{border-left-color:#d66c3a;background:#fffaf6}.reception-room-reserved{border-left-color:#d9a22d;background:#fffdf6}.reception-room-cleaning{border-left-color:#438ac2}.reception-room-maintenance,.reception-room-blocked{border-left-color:#a74e5a;background:#fff9fa}@media(max-width:1100px){.reception-room-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.reception-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.reception-room-grid{grid-template-columns:1fr}}

/* v1.3.3: consistent compact reception fields */
.reception-entry-fields .reception-fields-grid{margin-bottom:5px}.reception-entry-fields input[type=file]{padding:7px}.reception-entry-fields input[readonly]{background:#f2f6f8;color:#40566b}

/* v1.3.4 Room Management */
#room-modal-category .room-modal-panel{width:min(920px,calc(100vw - 32px));max-height:90vh;overflow:auto}
.category-management-list{border-top:1px solid #dce4ec;margin-top:18px;padding-top:12px;max-height:40vh;overflow:auto}
.category-entry-form{display:grid;grid-template-columns:minmax(130px,2fr) minmax(110px,1fr) 105px 85px auto auto;gap:7px;align-items:center;margin-bottom:8px}
.category-entry-form input,.category-entry-form select{min-width:0;width:100%}
.room-row-actions{display:flex;gap:6px;align-items:center}.room-delete-form{margin:0}.room-danger{background:#fff!important;color:#b42318!important;border:1px solid #f5a9a2!important}.room-danger:hover{background:#fff0ef!important}
@media(max-width:700px){.category-entry-form{grid-template-columns:1fr 1fr}.category-entry-form input:first-of-type{grid-column:1/-1}.room-row-actions{flex-wrap:wrap}}

/* v1.3.5: room management compact, desktop-friendly rows */
.room-list-card .table-scroll{overflow-x:auto}
.room-list-card table{min-width:1050px;table-layout:auto}
.room-list-card th,.room-list-card td{padding:10px 7px;vertical-align:middle}
.room-list-card th:nth-child(7){min-width:325px}
.room-list-card th:nth-child(8){min-width:145px}
.room-list-card .inline-form{display:flex;align-items:center;gap:5px;min-width:0;width:100%;flex-wrap:nowrap;margin:0}
.room-list-card .inline-form select{width:112px;min-width:100px;flex:0 0 112px;padding:9px 5px}
.room-list-card .inline-form input[name=note]{width:110px;min-width:75px;flex:1 1 95px;padding:9px 7px}
.room-list-card .inline-form button{flex:none;padding:10px 11px}
.room-list-card .room-row-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:5px}
.room-list-card .room-row-actions .btn{white-space:nowrap;padding:10px 11px}
.room-list-card .room-delete-form{margin:0;flex:none}
#room-modal-category .room-modal-panel{width:min(1000px,calc(100vw - 30px))}
#room-modal-category .category-management-list{margin-top:22px}
#room-modal-category .category-management-list .category-table-scroll{overflow-x:auto;width:100%}
#room-modal-category .category-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0 7px}
#room-modal-category .category-table th{font-size:12px;color:#536878;padding:4px 6px;text-align:left;border:0}
#room-modal-category .category-table td{padding:2px 4px;border:0;vertical-align:middle}
#room-modal-category .category-table input,#room-modal-category .category-table select{width:100%;min-width:0;padding:9px 8px;font-size:13px}
#room-modal-category .category-table .btn{padding:9px 11px;font-size:13px;white-space:nowrap}
#room-modal-category .category-table .category-action-cell{white-space:nowrap;width:142px}
#room-modal-category .category-table .category-action-cell button+button{margin-left:5px}
@media(max-width:850px){.room-list-card .table-scroll{overscroll-behavior-x:contain}}

/* v1.3.6: floating sidebar overlays content without resizing or shifting panels. */
@media (min-width:851px){
 body.has-sidebar .app-content,
 body.has-sidebar.sidebar-collapsed .app-content{
   width:100%;max-width:none;margin-left:0;padding:22px 26px;
   transition:none;
 }
 body.has-sidebar .sapphire-sidebar{
   z-index:45;
   box-shadow:8px 8px 26px rgba(10,33,48,.20);
 }
 body.has-sidebar.sidebar-collapsed .sapphire-sidebar{
   pointer-events:none;
 }
 body.has-sidebar:not(.sidebar-collapsed) .sapphire-sidebar{
   pointer-events:auto;
 }
}

/* v1.3.7: closed by default; sidebar only opens explicitly via burger, never on modal save */
.sapphire-confirm-panel{width:min(440px,calc(100vw - 30px));padding:22px}.sapphire-confirm-panel p{line-height:1.5;margin:20px 0}
@media(min-width:851px){body.has-sidebar.sidebar-collapsed .sapphire-sidebar{transform:translateX(-100%);pointer-events:none}body.has-sidebar:not(.sidebar-collapsed) .sapphire-sidebar{transform:translateX(0);pointer-events:auto}}

/* v1.3.9: compact, multi-select room list filters */
.room-filters{display:grid;grid-template-columns:minmax(160px,1.3fr) repeat(4,minmax(120px,1fr)) auto;gap:10px;align-items:end;margin:14px 0 6px}.room-filter-field{min-width:0}.room-filter-field>label{display:block;font-size:12px;font-weight:650;margin-bottom:6px;color:#25384c}.room-filter-field select,.room-filter-multi-button{display:block;width:100%;height:39px;padding:7px 10px;border:1px solid #bdcbd7;border-radius:8px;background:white;color:#182e42;font:inherit;font-size:13px;box-sizing:border-box}.room-filter-multi-button{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.room-multi-filter{position:relative}.room-filter-options{position:absolute;top:calc(100% + 5px);left:0;min-width:220px;max-height:265px;overflow:auto;background:white;border:1px solid #bdcbd7;border-radius:9px;box-shadow:0 10px 28px #102d422e;z-index:35;padding:8px}.room-filter-options[hidden]{display:none!important}.room-category-option{display:flex;align-items:center;gap:8px;padding:7px 8px;cursor:pointer;font-size:13px}.room-category-option:hover{background:#eef5f4;border-radius:6px}.room-category-option input{width:16px;height:16px;flex:none}.room-filter-tools{display:flex;gap:7px;padding:4px 4px 9px;border-bottom:1px solid #e3e9ee}.room-filter-tools button{border:0;background:#eaf2f3;color:#08695c;border-radius:6px;padding:6px 8px;font-size:12px;cursor:pointer}.room-filters>#room-filter-reset{height:39px;white-space:nowrap}.room-filter-count{font-size:12px;color:#627589;text-align:right;margin:0 0 7px}.room-list-card tr[hidden]{display:none!important}@media(max-width:1150px){.room-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.room-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.room-filters>#room-filter-reset{align-self:end}}

/* v1.4.0 reception room cards: clear category and inactive state */
.reception-room-top span{font-size:15px;font-weight:750;color:#18374c;line-height:1.3}
.reception-room-inactive{border-left-color:#c62828!important;border-color:#e9a2a2;background:#fff3f3}
.reception-room-inactive .reception-room-status{color:#b42323;font-size:14px;font-weight:800}
.reception-room-inactive .reception-room-note{color:#b42323;font-weight:650}

/* v1.4.2 Room billing configuration */
.room-settings-tabs{display:flex;gap:8px;margin-bottom:22px}.room-billing-form{max-width:900px}.room-billing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.room-billing-grid>div{border:1px solid #d9e2e9;padding:18px;border-radius:10px}.room-billing-grid label{display:block;margin:12px 0 7px}.room-billing-grid .room-setting-check{display:flex;align-items:center;gap:9px}.room-billing-grid input[type=checkbox]{width:auto}.room-billing-form>button{margin-top:16px}@media(max-width:700px){.room-billing-grid{grid-template-columns:1fr}}

/* v1.4.4: compact three-card room billing configuration */
.room-billing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.room-billing-grid>div{min-width:0}
.room-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
@media(max-width:850px){.room-billing-grid{grid-template-columns:1fr}}

/* v1.4.5: guarantee panel visibility follows the Settings toggle. */
#room-list-content[hidden],#room-settings-content[hidden]{display:none!important}

/* v1.4.6 reception financial summary */
.rec-summary-table-wrap{overflow-x:auto;margin-top:14px}.rec-summary-table{width:100%;border-collapse:collapse;font-size:12px;min-width:330px}.rec-summary-table th{text-align:left;font-size:11px;color:#7d643e;border-bottom:1px solid #e5d5b5;padding:9px 4px}.rec-summary-table td{padding:11px 4px;border-bottom:1px dashed #e5d5b5;white-space:nowrap}.rec-summary-table td:last-child,.rec-summary-table th:last-child{text-align:right;font-weight:700}.rec-summary-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-bottom:1px dashed #e5d5b5;padding:12px 0}.rec-summary-trio>div{min-width:0;display:flex;flex-direction:column;gap:5px}.rec-summary-trio small{color:#786748;font-size:11px}.rec-summary-trio strong{font-size:13px;white-space:nowrap}.rec-summary-balance{display:flex;justify-content:space-between;gap:12px;padding:15px 0;font-weight:800;color:#a3540a;font-size:17px}.rec-field-warning{color:#ba2626;font-size:11px;display:block}.rec-upload-ok{color:#08744d;font-weight:700}#rec-aadhaar-status{display:block;font-size:11px;margin-top:5px}#rec-aadhaar-view{margin-top:5px;font-size:11px;padding:5px 9px}@media(max-width:560px){.rec-summary-trio strong{font-size:11px}.rec-summary-table{font-size:11px}}

/* v1.4.7 compact multi-room picker and extra bed nights */
.rec-room-picker{position:relative;min-width:0}.rec-room-trigger{width:100%;min-height:40px;background:white!important;color:#182d3b!important;border:1px solid #b8cbd4!important;text-align:left;padding:8px 10px;border-radius:8px;display:flex;justify-content:space-between;align-items:center}.rec-room-trigger span{font-size:12px;color:#176a58}.rec-room-menu{position:absolute;z-index:150;top:100%;right:0;width:min(440px,90vw);background:white;border:1px solid #b9d0c6;border-radius:12px;box-shadow:0 12px 28px #102d2840;padding:12px}.rec-room-menu[hidden]{display:none!important}.rec-room-menu-title{display:flex;justify-content:space-between;font-weight:700;padding-bottom:10px;border-bottom:1px solid #ddd}.rec-room-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:235px;overflow:auto;padding:10px 0}.rec-room-choice{display:flex!important;align-items:center;gap:8px;border:1px solid #d5e2db;border-radius:8px;padding:8px;cursor:pointer;margin:0!important}.rec-room-choice input{width:18px!important;min-width:18px!important;height:18px!important}.rec-room-choice span{min-width:0}.rec-room-choice strong{display:block}.rec-room-choice small{display:block;font-size:10px;line-height:1.3}.rec-room-done{width:100%;background:#0b6a5b!important}.rec-bed-combined{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.rec-bed-combined>div{min-width:0}.rec-bed-combined label{font-size:12px}.rec-bed-combined input{width:100%;min-width:0}@media(max-width:650px){.rec-room-options{grid-template-columns:1fr}}

/* v1.4.8: per-dormitory headcount within the existing multi-room picker */
.rec-room-choice{flex-wrap:wrap}.rec-dorm-count{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding-left:26px;font-size:11px;font-weight:600}.rec-dorm-count input{width:68px!important;min-width:60px!important;height:32px!important;padding:4px 7px!important;font-size:13px!important}.rec-dorm-count input:disabled{opacity:.55;background:#f3f5f7}.rec-room-choice:has(.rec-dorm-count){align-content:center}

/* v1.4.9: in-app capacity warning dialog */
.rec-capacity-warning:not([hidden]){position:fixed;inset:0;z-index:100000;background:rgba(9,25,40,.56);display:flex;align-items:center;justify-content:center;padding:20px}
.rec-capacity-warning-panel{background:#fff;color:#17263c;border-radius:14px;max-width:430px;width:100%;padding:24px;box-shadow:0 16px 55px #0004}
.rec-capacity-warning-panel h3{margin:0 0 12px;font-size:18px}
.rec-capacity-warning-panel p{line-height:1.5;margin:0 0 20px}
.rec-capacity-warning-panel button{display:block;margin-left:auto;min-width:90px}

/* v1.4.10: room picker clear action and secure in-app photo preview (no blob URL navigation) */
.rec-room-menu-title{align-items:center;gap:12px}.rec-room-menu-tools{display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap}.rec-room-clear{background:transparent!important;border:1px solid #cfddd9!important;color:#0b6a5b!important;border-radius:6px;padding:5px 10px;cursor:pointer;font-size:12px}.rec-room-clear:hover{background:#e9f5f1!important}
.rec-photo-preview[hidden]{display:none!important}.rec-photo-preview{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px}.rec-photo-preview-backdrop{position:absolute;inset:0;background:rgba(7,25,36,.8)}.rec-photo-preview-panel{position:relative;max-width:min(94vw,900px);max-height:90vh;display:flex;align-items:center;justify-content:center;padding:12px;background:#fff;border-radius:12px;box-shadow:0 12px 50px #0005}.rec-photo-preview-panel img{display:block;max-width:calc(94vw - 24px);max-height:calc(90vh - 24px);width:auto;height:auto;object-fit:contain}.rec-photo-preview-close{position:absolute;right:8px;top:8px;z-index:1;background:#102d42!important;color:#fff!important;border:0;border-radius:50%;font-size:24px;width:36px;height:36px;cursor:pointer}

/* v1.4.14: Reception save confirmation in the ERP, not browser alert */
.rec-success-overlay{position:fixed;inset:0;background:rgba(10,29,45,.60);z-index:12000;display:flex;align-items:center;justify-content:center;padding:20px}.rec-success-dialog{background:#fff;border-radius:15px;box-shadow:0 22px 65px rgba(0,0,0,.22);padding:30px 35px;text-align:center;max-width:440px;width:100%;color:#1d293b}.rec-success-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:#e6f5ee;color:#087357;font-size:30px;font-weight:700}.rec-success-dialog h3{margin:15px 0 8px;font-size:20px}.rec-success-dialog p{margin:0 0 23px}.rec-success-dialog .btn{min-width:100px}

/* v1.4.14 Reception new-entry controls */
.rec-entry-header-actions{display:flex;align-items:center;gap:10px}
.rec-refresh-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cbd8e3;border-radius:9px;background:#fff;color:#0b655b;font-size:26px;cursor:pointer;line-height:1}
.rec-refresh-btn:hover,.rec-refresh-btn:focus-visible{background:#eaf5f3;outline:2px solid #0b655b;outline-offset:1px}
.rec-reset-dialog[hidden]{display:none!important}
.rec-reset-dialog{position:fixed;inset:0;z-index:100050;background:rgba(10,27,42,.57);display:flex;align-items:center;justify-content:center;padding:18px}
.rec-reset-panel{width:min(440px,100%);padding:24px;border-radius:15px;background:#fff;box-shadow:0 22px 55px rgba(0,0,0,.23);color:#1d2b3d}
.rec-reset-panel h3{margin:0 0 12px}
.rec-reset-panel p{margin:0 0 22px;line-height:1.5}
.rec-reset-actions{display:flex;justify-content:flex-end;gap:10px}

/* v1.4.15: reset confirmation remains a centered ERP overlay, outside the scrollable entry panel. */
.rec-reset-dialog{position:fixed!important;inset:0!important;z-index:100050!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(10,27,42,.57)!important}
.rec-reset-dialog[hidden]{display:none!important}
.rec-reset-panel{flex:0 1 440px;max-width:100%;box-sizing:border-box}
.rec-reset-actions{gap:16px!important;align-items:center;flex-wrap:wrap}

/* v1.4.17 Reception guest detail dialog */
.rec-stay-dates{min-width:195px;line-height:1.8}.rec-stay-dates strong{font-size:12px}.rec-guest-phone strong{font-weight:750;color:#24364c}.rec-guest-overlay:not([hidden]){position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:16px}.rec-guest-overlay[hidden]{display:none!important}.rec-guest-backdrop{position:absolute;inset:0;background:#102a3cb8}.rec-guest-dialog{position:relative;background:white;border-radius:14px;width:min(760px,100%);max-height:90dvh;overflow:auto;padding:24px;box-shadow:0 20px 70px #0005}.rec-guest-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dae5eb;padding-bottom:12px}.rec-guest-head h3{margin:0}.rec-guest-x{background:transparent;color:#263a4a;font-size:28px;padding:0 8px}.rec-guest-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 0}.rec-guest-facts>div{display:flex;flex-direction:column;gap:5px}.rec-guest-facts b{font-size:12px;color:#637486}.rec-guest-facts span{font-weight:650}.rec-guest-edit{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.rec-guest-edit label{flex:1;min-width:160px;font-size:12px;font-weight:650}.rec-guest-edit input,.rec-guest-secondary input,.rec-guest-secondary select{display:block;width:100%;margin-top:6px}.rec-guest-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rec-guest-secondary{display:flex;gap:20px;flex-wrap:wrap;margin-top:18px}.rec-guest-secondary details{flex:1;min-width:210px;border:1px solid #dce5eb;padding:12px;border-radius:8px}.rec-guest-secondary summary{cursor:pointer;font-weight:650}.rec-guest-secondary form{margin-top:12px}.rec-guest-secondary button{margin-top:10px}@media(max-width:550px){.rec-guest-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.rec-guest-dialog{padding:16px}}

/* Booking receipt choice dialog */
#reception-receipt-choice[hidden]{display:none!important}.rec-receipt-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.rec-receipt-buttons .btn{min-width:100px;white-space:nowrap;text-decoration:none}

/* v1.4.19: accessible, evenly spaced receipt actions */
#reception-receipt-choice .rec-receipt-buttons{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:6px}#reception-receipt-choice .rec-receipt-buttons .btn{display:inline-flex;align-items:center;justify-content:center;min-width:105px;min-height:43px;margin:0;box-sizing:border-box}#reception-receipt-choice .rec-success-dialog p+p{margin-top:-10px}

/* v1.4.20 Reception: clear receipt button spacing and readable financial amounts */
#reception-receipt-choice .rec-receipt-buttons{display:flex!important;align-items:center;justify-content:center;column-gap:18px!important;row-gap:12px!important;flex-wrap:wrap;margin-top:16px!important}
#reception-receipt-choice .rec-receipt-buttons>.btn{flex:0 0 auto!important;min-width:105px!important;min-height:43px!important;margin:0!important}
.rec-money-cell .rec-total-amount{display:block;font-size:15px;font-weight:800;color:#172a40;white-space:nowrap}
.rec-money-cell small{display:block;margin-top:4px}
.rec-money-cell .rec-due-amount{color:#c52828;font-weight:750}
.rec-stay-dates{min-width:245px;white-space:nowrap;line-height:1.65}

/* v1.4.21: visibly separated receipt actions and mobile validation */
#reception-receipt-choice .rec-receipt-buttons{display:flex!important;gap:18px!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;margin-top:22px!important}
#reception-receipt-choice .rec-receipt-buttons > *{margin:0!important;flex:0 0 100px!important;min-width:100px!important;max-width:100px!important}
.rec-mobile-warning{display:block;color:#c62828;font-size:12px;margin-top:5px}.rec-mobile-warning[hidden]{display:none!important}
@media print{.no-print,.app-topbar,.sapphire-sidebar,.sidebar-overlay,.app-footer{display:none!important}.wrap,.app-content{margin:0!important;padding:0!important;max-width:none!important}.receipt{box-shadow:none!important;border:0!important}}

/* v1.4.22: keep reception booking validation inside its modal */
.rec-save-error:not([hidden]){display:block;margin:12px 0;padding:12px 14px;border:1px solid #efb4b4;border-radius:8px;background:#fff2f2;color:#a31818;font-size:14px;font-weight:600;line-height:1.45}.reception-entry-modal .rec-server-invalid{border-color:#d32f2f!important;box-shadow:0 0 0 2px #d32f2f18}

/* v1.4.25: centered child age dialog; never stretches the reception entry screen */
.rec-child-ages-panel{width:min(410px,calc(100vw - 32px));max-width:410px;max-height:min(75vh,560px);display:flex;flex-direction:column;padding:20px!important;overflow:hidden}
.rec-child-ages-panel>p{font-size:13px;margin:0 0 12px;flex-shrink:0}
.rec-child-age-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow-y:auto;min-height:0;max-height:300px;padding:4px 3px 8px}
.rec-child-age-item{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:5px}
.rec-child-age-item input{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #b9cbd6;border-radius:7px}
.rec-child-age-error{color:#b91c1c!important}
.rec-child-age-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;flex-shrink:0}
.rec-child-age-actions button{margin:0!important;min-width:95px}
@media(max-width:420px){.rec-child-age-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.4.26: keep age confirmation controls on one row. */
.rec-child-age-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end;gap:14px!important}
.rec-child-age-actions button{flex:0 1 auto;white-space:nowrap;min-width:110px;margin:0!important}

/* v1.4.27: override generic warning dialog button stacking; keep age actions in one row. */
#rec-child-ages-dialog .rec-child-age-actions{display:flex!important;flex-flow:row nowrap!important;justify-content:flex-end!important;align-items:center!important;gap:12px!important;width:100%}
#rec-child-ages-dialog .rec-child-age-actions>button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:auto!important;min-width:112px;margin:0!important;white-space:nowrap}
/* v1.4.30 Reception checkout actions and full-settlement modal */
.reception-actions{white-space:nowrap}.reception-actions .rec-action-icon,.reception-actions .rec-open-guest{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;margin-right:7px;font-size:20px;text-decoration:none;vertical-align:middle}.rec-checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rec-checkout-fields label{font-weight:650;font-size:13px}.rec-checkout-fields input,.rec-checkout-fields select{width:100%;margin-top:6px}.rec-checkout-due{padding:12px;background:#eef7f4;border-radius:8px}.rec-checkout-error{color:#c32020}.rec-checkout-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}@media(max-width:550px){.rec-checkout-fields{grid-template-columns:1fr}.rec-checkout-actions{flex-wrap:wrap}}

/* v1.4.37 checkout history */
#checkout-history-table{width:100%;}#checkout-history-table .rec-guest-phone{display:block;}#checkout-history-table .reception-actions{white-space:nowrap}.rec-history-note{color:#64748b;font-size:12px;margin:12px 0 0}

/* v1.4.44 Booking Manager availability and period filters */
.sapphire-availability-badge{align-self:center;display:inline-flex;align-items:center;gap:8px;background:#e2f6ed;border:1px solid #8dd7b1;border-left:5px solid #0d9864;color:#075b41;border-radius:12px;padding:12px 18px;font-weight:800;font-size:16px;box-shadow:0 3px 12px rgba(0,95,65,.08)}
.sapphire-availability-badge:before{content:'✓';display:inline-grid;place-items:center;background:#0d9864;color:white;border-radius:50%;width:23px;height:23px;font-size:13px}
.sapphire-availability-badge.is-empty{background:#fff1f1;color:#a12222;border-color:#efb0b0;border-left-color:#cf3737}.sapphire-availability-badge.is-empty:before{content:'!';background:#cf3737}
.sapphire-period-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.sapphire-period-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;background:#fff;border:1px solid #d7e3e9;border-left:4px solid #0b826d;border-radius:12px;padding:16px 18px;cursor:pointer;color:#19364b;box-shadow:0 2px 8px rgba(10,40,60,.04);transition:background .15s,border-color .15s,transform .15s}.sapphire-period-card:hover{transform:translateY(-2px);border-color:#0b826d}.sapphire-period-card.is-active{background:#e7f5f0;border-color:#0b826d;box-shadow:0 0 0 1px #0b826d}.sapphire-period-card strong{font-size:29px;line-height:1.1;color:#086653}.sapphire-period-label{font-weight:700;font-size:14px}.sapphire-period-caption{font-size:12px;color:#59717c}@media(max-width:650px){.sapphire-period-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sapphire-period-card{padding:12px}.sapphire-availability-badge{font-size:14px}}

/* v1.4.45: room availability as a distinct card next to departure */
.sapphire-future-dates{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0 24px}
.sapphire-future-dates>label{display:flex;flex-direction:column;gap:5px;min-width:230px;margin:0}
.sapphire-future-dates>label input{min-height:46px}
.sapphire-future-dates .sapphire-availability-card{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 20px;background:#e7f6ee;border:1px solid #8ccdb0;border-left:5px solid #087b58;border-radius:12px;box-shadow:0 3px 12px rgba(0,80,60,.1);color:#075b41;font-weight:800;font-size:18px;white-space:nowrap}
.sapphire-availability-icon{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#087b58;color:white;font-size:19px}
.sapphire-future-dates .sapphire-availability-card.is-empty{background:#fff0f0;border-color:#e8a2a2;border-left-color:#bc2929;color:#a32222}
.sapphire-availability-card.is-empty .sapphire-availability-icon{background:#bc2929}
@media(max-width:760px){.sapphire-future-dates>label{min-width:0;flex:1 1 170px}.sapphire-future-dates .sapphire-availability-card{width:100%;font-size:16px;min-height:56px}}

/* v1.4.46 compact upcoming arrivals and departures summary cards */
.sapphire-period-cards{gap:10px;margin:10px 0 16px}
.sapphire-period-card{gap:3px;padding:10px 14px;min-height:78px;border-radius:10px}
.sapphire-period-card strong{font-size:23px;line-height:1.05}
.sapphire-period-label{font-size:13px}
.sapphire-period-caption{font-size:11px}
@media(max-width:650px){.sapphire-period-cards{gap:8px;margin:8px 0 12px}.sapphire-period-card{padding:9px 11px;min-height:72px}}
/* Global notifications v1.4.51 */
.sapphire-notification[hidden]{display:none!important}.sapphire-notification{position:fixed;inset:0;z-index:2147483600;background:rgba(10,30,48,.64);display:flex;align-items:center;justify-content:center;padding:20px}.sapphire-notification-panel{width:min(440px,100%);background:#fff;border-radius:15px;padding:26px 28px;text-align:center;box-shadow:0 22px 65px rgba(0,0,0,.26);color:#132e42}.sapphire-notification-symbol{margin:0 auto 12px;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff0e9;color:#ba4b0a;font-size:28px;font-weight:800}.sapphire-notification[data-kind="success"] .sapphire-notification-symbol{background:#e2f4ec;color:#087255}.sapphire-notification[data-kind="error"] .sapphire-notification-symbol{background:#ffebeb;color:#b72a2a}.sapphire-notification-panel h3{margin:0 0 12px;font-size:20px}.sapphire-notification-panel p{margin:0 0 22px;line-height:1.55;overflow-wrap:anywhere}.sapphire-notification-panel button{min-width:100px}

/* v1.4.54 Reception reservation conversion */
.sapphire-checkin-dialog{max-width:960px!important;max-height:88vh;overflow:auto}.sapphire-checkin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 20px}.sapphire-checkin-grid label{font-weight:600;font-size:13px;display:flex;flex-direction:column;gap:6px}.sapphire-checkin-grid input,.sapphire-checkin-grid select,.sapphire-checkin-grid textarea{width:100%;min-width:0;border:1px solid #c4d2dc;border-radius:8px;padding:10px;font:inherit}.sapphire-checkin-actions{display:flex;justify-content:flex-end;gap:12px;margin:20px 0 4px}.sapphire-checkin-hint{font-size:13px;color:#476276}@media(max-width:700px){.sapphire-checkin-grid{grid-template-columns:1fr}.sapphire-checkin-dialog{max-height:92vh}}

/* v1.4.54 reservation conversion */
.sapphire-checkin-dialog{max-width:1220px!important;width:min(96vw,1220px)!important}.sapphire-ci-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:18px}.sapphire-ci-fields{min-width:0}.sapphire-ci-sidebar{position:sticky;top:8px;align-self:start;background:#fff9ee;border:1px solid #e9cfa2;border-radius:12px;padding:16px}.sapphire-ci-summary{display:grid;gap:0}.sapphire-ci-summary>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed #decba8}.sapphire-ci-summary .sapphire-ci-due{font-size:18px;font-weight:800;color:#a85100;border-bottom:0}.sapphire-ci-sidebar .sapphire-checkin-grid{grid-template-columns:1fr 1fr;gap:8px}.sapphire-ci-sidebar .sapphire-checkin-actions{flex-wrap:wrap}.reception-actions .rec-action-icon{width:40px;min-width:40px;padding:9px!important;overflow:hidden;white-space:nowrap;text-align:center}@media(max-width:800px){.sapphire-ci-layout{grid-template-columns:1fr}.sapphire-ci-sidebar{position:static}}

/* v1.4.58: shared visual presentation for new entry and reserved check-in summaries */
.sapphire-ci-sidebar.reception-summary{display:block;background:#fff9ee;border:1px solid #e9cfa2;padding:16px}
.sapphire-ci-sidebar .sapphire-ci-summary{display:block}
.sapphire-ci-summary .rec-summary-trio>div{display:flex;flex-direction:column;align-items:flex-start;border:0;padding:0;gap:4px}
.sapphire-ci-summary .rec-summary-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-bottom:1px dashed #decba8;padding:12px 0}
.sapphire-ci-summary .sapphire-ci-payment-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
.sapphire-ci-summary .rec-summary-balance{display:flex;justify-content:space-between;align-items:center;padding:16px 0;color:#a85100;font-weight:800}
.sapphire-ci-summary .rec-summary-table-wrap{overflow-x:auto}
.sapphire-ci-summary .rec-summary-table{width:100%;font-size:12px}
.sapphire-ci-summary.sapphire-ci-expanded{position:relative;z-index:5}.sapphire-ci-summary.sapphire-ci-expanded .rec-summary-table{font-size:14px}

/* v1.4.59: reception check-in room picker and live summary popup */
.sapphire-ci-room-picker{position:relative;min-width:0}.sapphire-ci-room-picker>label{display:block;margin-bottom:6px}.sapphire-ci-room-trigger{width:100%;min-height:42px;text-align:left}.sapphire-ci-room-menu{position:absolute;z-index:100;top:100%;left:0;width:min(440px,90vw);max-width:none;box-shadow:0 16px 36px #142a3340}.sapphire-ci-room-menu[hidden],.sapphire-ci-summary-overlay[hidden]{display:none!important}.sapphire-ci-room-menu .rec-room-options{max-height:245px;overflow-y:auto}.sapphire-ci-summary-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px}.sapphire-ci-summary-backdrop{position:absolute;inset:0;background:rgba(12,31,46,.72)}.sapphire-ci-summary-dialog{position:relative;width:min(590px,100%);max-height:90dvh;overflow:auto;background:#fff9ee;border:1px solid #e9cfa2;border-radius:12px;padding:24px;box-shadow:0 20px 70px #0004}.sapphire-ci-summary-dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sapphire-ci-summary-dialog-header h3{margin:0}.sapphire-ci-summary-popup-content .sapphire-ci-summary{display:block}.sapphire-ci-summary-popup-content .rec-summary-table{width:100%}.sapphire-ci-summary-popup-content .rec-summary-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0;border-bottom:1px dashed #decba8}.sapphire-ci-summary-popup-content .rec-summary-trio>div{display:flex;flex-direction:column;gap:4px}.sapphire-ci-summary-popup-content .rec-summary-balance{display:flex;justify-content:space-between;color:#a85100;font-weight:800;padding:16px 0}.sapphire-ci-summary-popup-content .reception-summary-title{display:none}@media(max-width:500px){.sapphire-ci-summary-dialog{padding:14px}.sapphire-ci-summary-popup-content .rec-summary-table{font-size:11px}}

/* v1.4.61.1: accessible compact icon tooltips in Reception and Booking Manager */
.reception-actions .rec-action-icon,.reception-actions .rec-open-guest{position:relative;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:40px;min-height:40px;white-space:nowrap;}
.reception-actions [data-tip]::after{content:attr(data-tip);position:absolute;z-index:999;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%) translateY(4px);background:#142c40;color:white;padding:6px 10px;border-radius:6px;box-shadow:0 4px 12px #0003;font-size:12px;font-weight:500;line-height:1.25;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s;}
.reception-actions [data-tip]:hover::after,.reception-actions [data-tip]:focus-visible::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.reception-actions{overflow:visible;}
.bm-wrap{width:100%;max-width:1120px;margin:12px auto;padding:12px 4px;}
@media(max-width:650px){.bm-wrap{padding:8px 0}.bm-card{padding:14px}}

/* Sapphire v1.4.61.3: centered, branded guest login */
body.guest-page .guest-content{max-width:none;min-height:100vh;padding:24px 16px;display:flex;justify-content:center;align-items:center}
body.guest-page .sapphire-login-shell{width:100%;max-width:430px;display:flex;flex-direction:column;align-items:center;gap:20px}
body.guest-page .sapphire-login-card{width:100%;max-width:none;margin:0;padding:28px 28px 22px;border-radius:14px}
body.guest-page .sapphire-login-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:24px;text-align:center}
body.guest-page .sapphire-login-logo{width:100px;height:100px;object-fit:contain;border-radius:14px}
body.guest-page .sapphire-login-logo-fallback{display:flex;align-items:center;justify-content:center;background:#e9f3f1;color:#0d665b;font-size:44px}
body.guest-page .sapphire-login-company{font-size:17px;font-weight:700;color:#102d42;line-height:1.4}
body.guest-page .sapphire-login-card h2{margin:0 0 20px;font-size:23px;text-align:center}
body.guest-page .sapphire-login-card label{margin-top:14px}
body.guest-page .sapphire-login-footer{display:flex;align-items:center;justify-content:center;gap:9px;margin:0;color:#64748b;font-size:16px}
body.guest-page .sapphire-login-footer img{width:40px;height:40px;object-fit:contain;flex:none}
@media(max-width:480px){body.guest-page .guest-content{padding:16px}body.guest-page .sapphire-login-card{padding:24px 20px}body.guest-page .sapphire-login-logo{width:88px;height:88px}}

/* v1.4.62.2 campfire 12-hour selector */
.rec-time-12{display:flex;align-items:center;gap:7px;margin-top:6px}.rec-time-12 select{min-width:0;flex:1;width:0}.rec-time-12 select:last-child{flex:1.2}

/* v1.4.62.3: compact campfire schedule and in-ERP confirmation */
.rec-campfire-datetime{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px;align-items:end}
.rec-campfire-datetime>label{min-width:0}
.rec-campfire-datetime .rec-time-12{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;margin-top:6px}
.rec-campfire-datetime .rec-time-12 select{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;display:block}
.rec-campfire-datetime .rec-time-12 select:last-child{flex:1.2 1 0!important}
.rec-campfire-confirm-dialog{max-width:520px}
.rec-campfire-remove-detail{padding:12px;background:#f2f6f8;border-radius:8px;font-weight:600}
.rec-campfire-remove-action{background:#a72c37!important;color:white!important}
@media(max-width:560px){.rec-campfire-datetime{grid-template-columns:1fr}.rec-campfire-datetime .rec-time-12{flex-wrap:nowrap}}

/* v1.4.62.4: force four real columns; global form label/select rules must not stack time controls. */
.rec-campfire-datetime{display:grid!important;grid-template-columns:minmax(0,2.2fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,.9fr)!important;gap:10px!important;align-items:end!important;width:100%}
.rec-campfire-datetime>label{display:block!important;min-width:0!important;width:auto!important;margin:0!important;font-size:13px}
.rec-campfire-datetime>label>input,.rec-campfire-datetime>label>select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-top:6px!important;box-sizing:border-box!important;height:46px}
@media(max-width:580px){.rec-campfire-datetime{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,.7fr))!important;gap:5px!important}.rec-campfire-datetime>label{font-size:11px!important}}

/* v1.4.62.5: campfire four-column layout, isolated from legacy global form CSS. */
.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime{display:grid!important;grid-template-columns:minmax(0,2.5fr) minmax(0,.75fr) minmax(0,.75fr) minmax(0,.85fr)!important;gap:10px!important;align-items:end!important;width:100%!important;}
.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime>label{display:block!important;min-width:0!important;width:100%!important;margin:0!important;font-size:12px!important;white-space:nowrap;}
.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime>label>input,.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime>label>select{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;margin:6px 0 0!important;padding:8px!important;}
@media(max-width:500px){.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime{gap:5px!important;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,.7fr))!important}.rec-guest-overlay .rec-guest-dialog .rec-campfire-datetime>label{font-size:10px!important}}

/* v1.4.62.6: in-dialog feedback after Campfire add/remove. */
.rec-campfire-feedback{padding:10px 12px;margin:10px 0;border-radius:8px;font-weight:600;font-size:13px}
.rec-campfire-feedback-ok{background:#e9f6f1;color:#08664e;border:1px solid #b8e0d0}
.rec-campfire-feedback-error{background:#fff0ef;color:#a22620;border:1px solid #efc3bf}

/* Product tab styles load before the page paints, preventing the green default-link flash. */
.food-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px;border-bottom:1px solid #dbe2ea;padding-bottom:10px}.food-tabs a{display:inline-block;padding:11px 19px;text-decoration:none;color:#17344b;background:#edf2f6;border-radius:9px 9px 0 0;font-weight:650}.food-tabs a.active{color:#fff;background:#0f3047}.food-tabs a:hover{filter:brightness(.94)}.food-tabs a:focus-visible{outline:3px solid #0d7667}
.food-product-tabs a,.food-product-tabs a:link,.food-product-tabs a:visited{background:#edf2f6;color:#17344b;text-decoration:none}.food-product-tabs a.active,.food-product-tabs a.active:link,.food-product-tabs a.active:visited{background:#0f3047;color:#fff}.food-product-tabs a:hover{filter:none;background:#e2e9ef}.food-product-tabs a.active:hover{background:#0f3047}

/* v1.4.64.25: no green navigation flash on product tab changes */
body.has-sidebar.sidebar-collapsed .sapphire-sidebar{visibility:hidden}body.has-sidebar:not(.sidebar-collapsed) .sapphire-sidebar{visibility:visible}body.has-sidebar .sapphire-sidebar,body.has-sidebar .app-content{transition:none!important}.food-product-tabs a,.food-product-tabs a:link,.food-product-tabs a:visited,.food-product-tabs a:hover,.food-product-tabs a:focus,.food-product-tabs a:active{-webkit-tap-highlight-color:transparent;background:#edf2f6!important;color:#17344b!important;box-shadow:none!important;outline:0}.food-product-tabs a.active,.food-product-tabs a.active:hover,.food-product-tabs a.active:focus,.food-product-tabs a.active:active{background:#0f3047!important;color:white!important}
