/* Responsive reservation cards: every field stays in the viewport. */
html body .os-workspace .booking-ledger .tablewrap{max-width:100%;max-height:none!important;overflow:visible!important;background:transparent!important;border:0!important}
html body .os-workspace .booking-ledger table{display:block!important;min-width:0!important;width:100%!important;table-layout:fixed!important}
html body .os-workspace .booking-ledger thead{display:none!important}
html body .os-workspace .booking-ledger tbody{display:grid!important;gap:16px;padding:16px 0!important;width:100%;box-sizing:border-box}
html body .os-workspace .booking-ledger table tbody>tr[data-booking-row]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-areas:'guest guest status actions' 'reference reference channel payment' 'booked stay stay method' 'total paid due due';gap:16px 24px;padding:24px!important;margin:0!important;border:1px solid #3a547480!important;border-radius:18px!important;background:linear-gradient(120deg,#1a304b,#102138)!important;box-shadow:inset 0 1px #ffffff08}
html body .os-workspace .booking-ledger td{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;min-width:0!important;max-width:none!important;width:auto!important;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;font-size:14px!important;line-height:1.5!important}
html body .os-workspace .booking-ledger td:before{content:attr(data-label)!important;display:block!important;position:static!important;font-size:10px!important;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;color:#a8bdd6!important;margin:0 0 6px!important;width:auto!important}
html body .os-workspace .booking-ledger .ledger-guest{grid-area:guest;justify-content:center!important}
html body .os-workspace .booking-ledger .ledger-guest:before,html body .os-workspace .booking-ledger .ledger-reference:before,html body .os-workspace .booking-ledger .ledger-actions:before{display:none!important}
html body .os-workspace .booking-ledger .ledger-guest b{font-size:20px!important;color:#f4f8ff}
.ledger-reference{grid-area:reference;color:#83dce9}.ledger-booked{grid-area:booked}.ledger-stay{grid-area:stay}.ledger-channel{grid-area:channel}.ledger-payment{grid-area:payment}.ledger-method{grid-area:method}.ledger-total{grid-area:total}.ledger-paid{grid-area:paid}.ledger-due{grid-area:due}.ledger-status{grid-area:status}
html body .os-workspace .booking-ledger td.ledger-actions{grid-area:actions;flex-direction:row!important;justify-content:flex-end!important;align-items:center!important;gap:4px}
html body .os-workspace .booking-ledger td:is(.ledger-total,.ledger-paid,.ledger-due){padding-top:16px!important;border-top:1px solid #526b874d!important;font-size:18px!important;font-weight:650;font-variant-numeric:tabular-nums}
html body .os-workspace .booking-ledger td.ledger-paid{color:#7ee4bd}html body .os-workspace .booking-ledger td.ledger-due{color:#f8cb7a}
html body .os-workspace .booking-ledger .booking-stay-dates{max-width:none;font-size:14px;font-weight:400}
html body .os-workspace .booking-ledger .booking-payment-badge{margin:0;font-size:12px}
.ledger-stage{display:inline-flex;padding:6px 10px;border-radius:8px;border:1px solid #52657b;font-size:12px;font-weight:650}
.ledger-stage.inhouse{background:#12443b;color:#8af0c9;border-color:#337f6d}.ledger-stage.confirmed{background:#133950;color:#95ddf3;border-color:#326581}.ledger-stage.completed{background:#263347;color:#b9cae0;border-color:#465b75}.ledger-stage.pending{background:#463c28;color:#ffd68b;border-color:#7f6b40}.ledger-stage.inactive{background:#462b37;color:#f3b4c6;border-color:#7d4b60}.ledger-muted{color:#a6bad4}
.booking-sort-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;color:#a8bdd6;font-size:12px}.booking-sort-toolbar>span{margin-right:auto}.booking-sort-toolbar select{max-width:190px;min-width:0}.booking-sort-toolbar button{white-space:nowrap}
html body .os-workspace .booking-ledger .os-entry-bar{position:static!important;border-radius:14px!important}
@media(max-width:1000px){html body .os-workspace .booking-ledger table tbody>tr[data-booking-row]{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:'guest guest' 'reference reference' 'status channel' 'booked stay' 'payment method' 'total paid' 'due actions';gap:18px 16px;padding:20px!important}.booking-sort-toolbar>span{flex-basis:100%}}
@media(max-width:420px){html body .os-workspace .booking-ledger table tbody>tr[data-booking-row]{padding:16px!important;gap:16px 12px}html body .os-workspace .booking-ledger td:is(.ledger-total,.ledger-paid,.ledger-due){font-size:16px!important}.booking-sort-toolbar select{max-width:140px}}
html body .os-workspace .booking-ledger table tbody>tr[data-booking-row]:is(.os-page-hidden,[hidden]){display:none!important}

html body .os-workspace .booking-ledger td.ledger-guest{grid-area:guest!important}
html body .os-workspace .booking-ledger td.ledger-reference{grid-area:reference!important}
html body .os-workspace .booking-ledger td.ledger-booked{grid-area:booked!important}
html body .os-workspace .booking-ledger td.ledger-stay{grid-area:stay!important}
html body .os-workspace .booking-ledger td.ledger-channel{grid-area:channel!important}
html body .os-workspace .booking-ledger td.ledger-payment{grid-area:payment!important}
html body .os-workspace .booking-ledger td.ledger-method{grid-area:method!important}
html body .os-workspace .booking-ledger td.ledger-total{grid-area:total!important}
html body .os-workspace .booking-ledger td.ledger-paid{grid-area:paid!important}
html body .os-workspace .booking-ledger td.ledger-due{grid-area:due!important}
html body .os-workspace .booking-ledger td.ledger-status{grid-area:status!important}
html body .os-workspace .booking-ledger td.ledger-actions{grid-area:actions!important}
@media(max-width:600px){
 html body .os-workspace .booking-ledger table tbody>tr[data-booking-row]{grid-template-areas:'guest guest' 'reference reference' 'status channel' 'booked booked' 'stay stay' 'payment method' 'total paid' 'due due' 'actions actions';box-sizing:border-box;width:100%;gap:18px 14px}
 html body .os-workspace .booking-ledger td.ledger-guest b{font-size:18px!important;line-height:1.4}
 html body .os-workspace .booking-ledger td.ledger-reference{font-size:12px!important;line-height:1.6!important}
 html body .os-workspace .booking-ledger td.ledger-actions{padding-top:14px!important;border-top:1px solid #526b874d!important;gap:10px!important}
 html body .os-workspace .booking-ledger .ledger-actions .mini{min-height:44px!important;margin:0!important}
 html body .os-workspace .booking-ledger .booking-stay-dates{font-size:13px;line-height:1.7}
 html body .os-workspace .booking-ledger .os-entry-controls{display:grid!important;grid-template-columns:minmax(90px,1fr) 40px auto 40px;align-items:center;gap:8px!important;width:100%;min-width:0}
 html body .os-workspace .booking-ledger .os-entry-controls label{display:flex;align-items:center;gap:6px;min-width:0;margin:0}
 html body .os-workspace .booking-ledger .os-entry-controls select{width:62px;min-width:0;min-height:44px;padding:8px;font-size:16px}
 html body .os-workspace .booking-ledger .os-entry-controls button{min-width:40px;min-height:44px;padding:6px!important;margin:0}
 html body .os-workspace .booking-ledger .os-entry-controls button span{display:none}
 html body .os-workspace .booking-ledger [data-page-position]{font-size:11px;text-align:center;white-space:nowrap}
 html body .os-workspace .booking-ledger .os-entry-bar{padding:12px!important;gap:12px!important}
 html body .os-workspace .booking-ledger .booking-sort-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
 html body .os-workspace .booking-ledger .booking-sort-toolbar>span{grid-column:1/-1}
 html body .os-workspace .booking-ledger .booking-sort-toolbar select{max-width:none;width:100%;min-height:44px;font-size:16px}
 html body .os-workspace .booking-ledger .booking-sort-toolbar button{min-height:44px;padding:8px;font-size:11px}
}
