/* PM24 V302 — final regression, mobile compactness and premium safety polish */
:root{--pm24-v302-navy:#08265e;--pm24-v302-blue:#0b78ff;--pm24-v302-pink:#ed168c;--pm24-v302-line:#d8e4f3;--pm24-v302-soft:#f4f8ff;--pm24-v302-danger:#d92555}

/* Route/profile stability: a restored tab must never remain under a white overlay. */
body.app-profile-settings{view-transition-name:none!important;animation:none!important;opacity:1!important;filter:none!important}
body.app-profile-settings.pm24-route-leaving{opacity:1!important;filter:none!important}
body.app-profile-settings #pm24-route-transition{display:none!important}
body:not(.pm24-route-leaving) #pm24-route-transition{opacity:0!important;visibility:hidden!important}

/* Settings premium cards and reliable image previews. */
.owner-settings-upload-card{position:relative;overflow:hidden}
.owner-settings-upload-preview{min-height:154px;background:linear-gradient(145deg,#f7faff,#eef5ff)}
.owner-settings-avatar{display:block;width:100%;height:154px;object-fit:cover;border-radius:18px}
.owner-settings-upload-card:first-child .owner-settings-avatar{width:132px;height:132px;margin:auto;border-radius:34px}
.owner-upload-guidance{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;color:#627895;font-size:11px}
.owner-upload-guidance span{padding:5px 8px;border:1px solid #dce7f4;border-radius:999px;background:#f8fbff}
.v299-image-preview{height:180px!important;object-position:center}

/* Properties: real mobile cards, actions never outside the viewport. */
@media(max-width:760px){
 body.app-properties .section-title{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:18px!important}
 body.app-properties .section-title .btn{width:100%!important}
 body.app-properties .table-wrap{overflow:visible!important}
 body.app-properties .data-table,body.app-properties .data-table tbody{display:grid!important;width:100%!important;gap:12px!important}
 body.app-properties .data-table thead{display:none!important}
 body.app-properties .data-table tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:16px!important;border:1px solid var(--pm24-v302-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 12px 28px rgba(15,52,102,.08)!important}
 body.app-properties .data-table td{display:grid!important;gap:4px!important;padding:0!important;border:0!important;min-width:0!important;white-space:normal!important}
 body.app-properties .data-table td:before{content:attr(data-label);color:#7488a5;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
 body.app-properties .data-table td:first-child,body.app-properties .data-table td:last-child{grid-column:1/-1!important}
 body.app-properties .data-table td:last-child{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
 body.app-properties .data-table td:last-child:before{display:none}
 body.app-properties .data-table td:last-child .btn{width:100%!important;min-height:44px!important}
}

/* Owner dashboard: 390px uses the requested two cards per row. */
@media(max-width:760px){
 .owner-simple-stat-cards,.owner-stat-cards,.owner-dashboard-metrics,.hospitality-inventory-stat-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .owner-simple-stat-cards>*,.owner-stat-cards>*,.owner-dashboard-metrics>*,.hospitality-inventory-stat-strip>*{min-width:0!important;min-height:98px!important;padding:12px!important;border-radius:17px!important}
 .owner-simple-stat-cards strong,.owner-stat-cards strong,.owner-dashboard-metrics strong,.hospitality-inventory-stat-strip b{font-size:23px!important;line-height:1.05!important}
 .owner-simple-stat-cards small,.owner-stat-cards small,.owner-dashboard-metrics small,.hospitality-inventory-stat-strip small{font-size:10px!important;line-height:1.35!important}
 .owner-floating-chat,.pm24-floating-chat,[class*=floating-chat]{right:12px!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;z-index:65!important}
}

/* Reports: compact summary and controls without reducing chart readability. */
@media(max-width:650px){
 body.app-stay-reports .section-title,body.app-stay-reports .stay-report-head{padding:16px!important}
 .stay-report-actions,.report-actions{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:7px!important;width:100%!important}
 .stay-report-actions .btn,.report-actions .btn{min-width:0!important;min-height:40px!important;padding:8px!important;white-space:nowrap!important}
 .stay-report-summary,.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .stay-report-summary>*,.report-summary-grid>*{min-height:104px!important;padding:12px!important;border-radius:17px!important}
 .stay-report-summary b,.report-summary-grid b{font-size:23px!important}
 .stay-report-summary small,.report-summary-grid small{font-size:10px!important;line-height:1.35!important}
 .history-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}
 .history-row a{min-width:0!important;padding:7px 4px!important;text-align:center!important}
 .report-chart-card,.stay-report-chart-card{padding:15px!important;border-radius:19px!important}
}

/* Staff & Duty true tab panels on mobile. */
@media(max-width:760px){
 body.app-staff-duty .staff-duty-tabs{position:sticky!important;top:60px!important;z-index:40!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;padding:8px!important;background:rgba(244,248,255,.96)!important;backdrop-filter:blur(12px)!important;border-radius:16px!important;overflow:visible!important}
 body.app-staff-duty .staff-duty-tabs a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;padding:9px 6px!important;text-align:center!important;white-space:normal!important;line-height:1.15!important}
 body.app-staff-duty .staff-duty-tabs a.is-active{background:linear-gradient(135deg,var(--pm24-v302-pink),var(--pm24-v302-blue))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 9px 20px rgba(21,101,224,.2)!important}
 .v302-duty-panel[hidden]{display:none!important}
 body.app-staff-duty.v302-duty-tab-active .staff-duty-summary-grid,body.app-staff-duty.v302-duty-tab-active .staff-duty-rules-card{display:none!important}
}

/* Staff access: mobile Add Staff / Staff Directory switch and safe dialogs. */
.v302-staff-access-tabs{display:none}
@media(max-width:760px){
 .v302-staff-access-tabs{position:sticky;top:60px;z-index:35;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px;padding:8px;border:1px solid #dce7f4;border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
 .v302-staff-access-tabs button{min-height:42px;border:0;border-radius:12px;background:#eef5ff;color:#173d75;font-weight:900}
 .v302-staff-access-tabs button.is-active{background:linear-gradient(135deg,var(--pm24-v302-pink),var(--pm24-v302-blue));color:#fff}
 body.app-staff .v302-staff-panel[hidden]{display:none!important}
 .staff-edit-dialog{position:fixed!important;inset:10px!important;width:auto!important;max-width:520px!important;height:calc(100dvh - 20px)!important;max-height:none!important;margin:auto!important;overflow:hidden!important;border-radius:24px!important}
 .staff-edit-form{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;height:100%!important;max-height:none!important;overflow:hidden!important;padding:0!important}
 .staff-edit-head{position:relative!important;top:auto!important;margin:0!important;padding:18px 18px 14px!important;background:#fff!important}
 .staff-edit-grid{overflow:auto!important;padding:14px 18px!important;align-content:start!important}
 .staff-edit-note{margin:0 18px 10px!important}
 .staff-edit-actions{position:relative!important;bottom:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:0!important;padding:12px 18px calc(12px + env(safe-area-inset-bottom))!important;border-top:1px solid #e3ebf6!important;background:#fff!important}
 .staff-edit-actions .btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;font-size:13px!important}
 .staff-directory-actions .staff-inline-form select:disabled,.staff-directory-actions .staff-inline-form button:disabled{opacity:.58!important;cursor:not-allowed!important}
}

/* Premium checkout choices and actions. */
.fd-bill-request{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding:12px!important;border:1px solid #dce6f3!important;border-radius:16px!important}
.fd-bill-request legend{grid-column:1/-1;padding:0 6px;font-weight:900;color:#173b70}
.fd-bill-request label{position:relative;display:flex!important;align-items:center!important;gap:9px!important;min-height:52px!important;padding:10px 12px!important;border:1px solid #d7e3f2!important;border-radius:14px!important;background:#fff!important;cursor:pointer!important;font-weight:850!important;line-height:1.25!important}
.fd-bill-request label:has(input:checked){border-color:#3087ef!important;background:linear-gradient(145deg,#eef7ff,#fff3fa)!important;box-shadow:0 0 0 3px rgba(48,135,239,.1)!important}
.fd-bill-request input[type=radio]{width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important;accent-color:#1378ee!important}
.fd-bill-request small{grid-column:1/-1!important;color:#6b7f9b!important}
.fd-v76-modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.fd-v76-modal-actions .btn{min-height:50px!important;border-radius:14px!important;font-weight:900!important}
.fd-v76-modal-actions .danger{border:0!important;background:linear-gradient(135deg,#e62361,#f01484)!important;color:#fff!important;box-shadow:0 12px 26px rgba(218,31,92,.23)!important}
@media(max-width:430px){.fd-bill-request{grid-template-columns:1fr!important}.fd-v76-modal-actions{grid-template-columns:1fr 1fr!important}}

/* Shared PM24 confirmation modal, replaces localhost browser confirms. */
.pm24-v302-confirm{width:min(560px,calc(100vw - 24px));border:0;border-radius:24px;padding:0;overflow:hidden;color:#102b57;box-shadow:0 34px 100px rgba(4,25,60,.34)}
.pm24-v302-confirm::backdrop{background:rgba(4,19,43,.62);backdrop-filter:blur(6px)}
.pm24-v302-confirm-card{padding:22px;background:#fff}
.pm24-v302-confirm-brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.pm24-v302-confirm-brand img{width:92px;height:34px}.pm24-v302-confirm-brand button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d8e3f1;border-radius:50%;background:#f7faff;color:#17375f;font-size:24px}
.pm24-v302-confirm-icon{display:grid;place-items:center;width:58px;height:58px;margin:18px 0 10px;border-radius:18px;background:linear-gradient(145deg,#fff2f8,#eaf5ff);font-size:27px}
.pm24-v302-confirm h2{margin:0 0 8px;font-size:27px;letter-spacing:-.04em}.pm24-v302-confirm p{margin:0;color:#667b98;line-height:1.55}
.pm24-v302-confirm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.pm24-v302-confirm-facts span{display:grid;gap:4px;padding:11px;border:1px solid #dce7f4;border-radius:13px;background:#f8fbff}.pm24-v302-confirm-facts small{color:#7286a3;font-size:10px;font-weight:900;text-transform:uppercase}.pm24-v302-confirm-facts b{overflow-wrap:anywhere}
.pm24-v302-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pm24-v302-confirm-actions button{min-height:50px;border-radius:14px;font:inherit;font-weight:900}.pm24-v302-confirm-cancel{border:1px solid #ccdbea;background:#fff;color:#173b70}.pm24-v302-confirm-ok{border:0;background:linear-gradient(135deg,var(--pm24-v302-pink),var(--pm24-v302-blue));color:#fff;box-shadow:0 12px 28px rgba(26,101,224,.22)}.pm24-v302-confirm.is-danger .pm24-v302-confirm-ok{background:linear-gradient(135deg,#dc2851,#ef167c)}

/* Group booking details and sticky action clearance. */
.g-summary div{display:grid!important;gap:5px!important}.g-summary small{display:block!important}.g-summary b{display:block!important;line-height:1.35!important}
.g-allot-board{padding-bottom:104px!important}.g-allot-submit{bottom:0!important;margin:14px -16px -16px!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(12px)!important;border-top:1px solid #dce6f3!important}
.g-danger-context{display:grid;gap:7px;padding:11px 12px;border:1px solid #ffd0dc;border-radius:13px;background:#fff5f8;color:#8d2444;font-size:12px}.g-danger-context b{font-size:14px}.g-danger-details label>span.required:after{content:' · Required';color:#c51d4b;font-size:10px}
.g-danger-details select:disabled{opacity:.55;background:#f4f6f9}
.receipt-total>div:last-child{display:grid!important;grid-template-columns:auto auto!important;justify-content:end!important;gap:4px 10px!important;align-items:end!important}.receipt-total>div:last-child small{grid-column:1/-1!important}.receipt-total>div:last-child b,.receipt-total>div:last-child span{margin:0!important;white-space:normal!important}
@media(max-width:650px){.g-side{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}.g-summary{gap:8px!important}.g-summary div{padding:10px!important}.g-cancel-actions{grid-template-columns:1fr 1fr!important}.receipt-total>div:last-child{justify-content:start!important}}

/* Payment form must start clean; fully-paid state has no stale inputs. */
.pm24-paid-complete-card{display:grid;gap:8px;padding:16px;border:1px solid #b9edca;border-radius:17px;background:linear-gradient(145deg,#effdf4,#f8fffb);color:#15683b}.pm24-paid-complete-card b{font-size:18px}.pm24-paid-complete-card small{color:#3e7d5c}.pm24-paid-complete-card .ops-detail-actions{margin-top:5px}

/* Inventory builder actions and compact metrics. */
.hospitality-room-form-actions{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center}.hospitality-room-form-actions .btn{min-height:48px}.hospitality-room-reset{border:1px solid #cddbea!important;background:#fff!important;color:#19519a!important;box-shadow:none!important}
@media(max-width:520px){.hospitality-room-form-actions{grid-template-columns:1fr 1fr}.hospitality-room-form-actions .btn{width:100%!important;padding:8px!important;font-size:12px!important}}

/* Login and OTP pages: premium, compact and mobile-safe. */
.pgm-business-auth,.pgm-login-pro{background:radial-gradient(circle at 12% 10%,rgba(237,22,140,.11),transparent 30%),radial-gradient(circle at 88% 12%,rgba(11,120,255,.13),transparent 32%),#eef4fb!important}
.pgm-business-auth-card,.pgm-login-pro-card{border:1px solid rgba(198,216,239,.9)!important;border-radius:26px!important;box-shadow:0 28px 80px rgba(8,42,91,.16)!important}
.pgm-business-primary,.pgm-login-pro-submit{position:relative;overflow:hidden;border-radius:15px!important;box-shadow:0 14px 30px rgba(24,101,225,.22)!important;transition:transform .16s ease,box-shadow .16s ease!important}.pgm-business-primary:hover,.pgm-login-pro-submit:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(24,101,225,.27)!important}.pgm-business-primary.is-loading,.pgm-login-pro-submit.is-loading{pointer-events:none;opacity:.78}
.pgm-business-otp-input,.pgm-login-pro-otp{letter-spacing:.55em!important;text-align:center!important;font-variant-numeric:tabular-nums!important}
.pm24-inline-error{display:block;margin-top:5px;color:#c4204f;font-size:11px;font-weight:800;line-height:1.35}.pm24-invalid{border-color:#df3b65!important;box-shadow:0 0 0 3px rgba(223,59,101,.1)!important}
@media(max-width:760px){
 .pgm-business-auth{padding:10px!important}.pgm-business-auth-grid{display:block!important;min-height:auto!important}.pgm-business-auth-hero{display:none!important}.pgm-business-auth-card-wrap{min-height:calc(100dvh - 20px)!important;padding:10px 0!important}.pgm-business-auth-card{width:100%!important;max-width:520px!important;padding:20px 16px!important;border-radius:24px!important}.pgm-business-phone{grid-template-columns:58px minmax(0,1fr)!important}.pgm-business-phone input{min-width:0!important;font-size:14px!important}.pgm-business-security{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.pgm-business-security span:last-child{grid-column:1/-1!important}.pgm-business-auth-help{padding:8px!important;text-align:center!important;line-height:1.6!important}
 .pgm-login-pro{min-height:100dvh!important}.pgm-login-pro-grid{padding:12px!important}.pgm-login-pro-card-wrap{width:100%!important}.pgm-login-pro-card{padding:24px 17px!important}.pgm-login-simple-title{font-size:34px!important}.pgm-login-pro-footer{display:grid!important;gap:8px!important;text-align:center!important}
}

/* Global premium small polish. */
button,.btn,a.btn{touch-action:manipulation}
.owner-page-footer,.site-footer{color:#71849e!important}

/* V302 exact class overrides found during the final mobile regression. */
@media(max-width:760px){
 .pm24-hotel-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .pm24-hotel-kpi{min-width:0!important;min-height:98px!important;padding:12px!important}
 .pm24-hotel-kpi b{font-size:24px!important}.pm24-hotel-kpi small{font-size:9.5px!important;line-height:1.3!important}
 .pm24-hotel-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pm24-hotel-money-grid article.wide{grid-column:1/-1!important}
 .pm24-hotel-action-dock{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .sr-head{padding:16px!important;border-radius:20px!important}.sr-head h1{font-size:26px!important}.sr-actions{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important}.sr-actions .srb{min-width:0!important;padding:9px 7px!important;font-size:11px!important;white-space:nowrap!important}
 .sr-months{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.sr-months a{padding:7px 3px!important;text-align:center!important;font-size:11px!important}
 .sr-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.sr-stat{min-width:0!important;min-height:105px!important;padding:12px!important;border-radius:17px!important}.sr-stat span{font-size:9px!important;line-height:1.2!important}.sr-stat strong{font-size:22px!important;margin:5px 0!important}.sr-stat small{font-size:10px!important;line-height:1.35!important}
 .sr-main{gap:10px!important}.sr-card{padding:14px!important;border-radius:18px!important}.sr-chart{height:150px!important}.sr-donut{width:145px!important;height:145px!important}.sr-donut:after{width:92px!important;height:92px!important;font-size:18px!important}.sr-bars{gap:7px!important}.sr-bar-row{grid-template-columns:78px minmax(0,1fr) 70px!important;font-size:10px!important}
 .hospitality-inventory-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:480px){.pm24-hotel-kpis,.pm24-hotel-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.pm24-group-cancel-context{display:grid;gap:6px;padding:11px 12px;border:1px solid #ffd0dc;border-radius:13px;background:#fff5f8;color:#8d2444;font-size:12px}.pm24-group-cancel-context b{font-size:14px}.g-danger-details label>span em{color:#c51d4b;font-style:normal;font-size:10px}.g-danger-details [data-v302-refund-mode-wrap]:has(select:disabled){opacity:.62}
.pm24-receipt-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,auto))!important;gap:9px 18px!important;align-items:end!important;justify-content:end!important}.pm24-receipt-meta>span{display:grid!important;gap:3px!important}.pm24-receipt-meta small{grid-column:auto!important}.pm24-receipt-meta b{margin:0!important}
.hospitality-room-form-actions [data-v302-room-reset]{border:1px solid #cddbea!important;background:#fff!important;color:#19519a!important;box-shadow:none!important}
[data-v302-group-payment-form] button:disabled{opacity:.55!important;cursor:not-allowed!important;box-shadow:none!important}
@media(max-width:650px){.pm24-receipt-meta{justify-content:start!important}.receipt-total{align-items:stretch!important}.receipt-total>div{min-width:0!important}}
