:root{
  --bg:#f4fbff;--card:#ffffff;--ink:#123044;--muted:#6b7d8c;--line:#dce9f2;
  --primary:#0077b6;--primary2:#00b4d8;--accent:#ffb703;--danger:#d62828;--success:#2a9d8f;
  --shadow:0 18px 45px rgba(18,48,68,.12);--radius:24px;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top left,#caf0f8 0,#f4fbff 34%,#fff 100%);color:var(--ink)}
a{color:inherit;text-decoration:none}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:16px clamp(16px,4vw,56px);background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid rgba(220,233,242,.9)}
.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:48px;height:48px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;box-shadow:var(--shadow)}.brand small{display:block;color:var(--muted);font-size:12px}.nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nav a{padding:10px 12px;border-radius:999px;font-weight:700;font-size:14px}.nav a:hover{background:#eef8fc}
.hero{min-height:620px;display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center;padding:70px clamp(18px,5vw,80px)}
.eyebrow{display:inline-flex;gap:8px;align-items:center;padding:9px 14px;border-radius:999px;background:#e5f8ff;color:#006494;font-weight:800;font-size:13px}
.eyebrow2{display:inline-flex;gap:8px;align-items:center;padding:9px 14px;border-radius:999px;background:#e5f8ff;color:#006494;font-weight:800;font-size:13px}

.hero h1{font-size:clamp(42px,6vw,82px);line-height:.94;margin:18px 0 14px;letter-spacing:-.06em}

.hero p{color:var(--muted);font-size:18px;line-height:1.7;max-width:720px}.hero-card{border-radius:34px;min-height:480px;background:linear-gradient(160deg,rgba(0,119,182,.88),rgba(0,180,216,.78)),url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=80') center/cover;box-shadow:var(--shadow);padding:28px;color:white;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;position:relative}.hero-card:before{content:"";position:absolute;inset:20px;border:1px solid rgba(255,255,255,.35);border-radius:28px}.glass{position:relative;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px);border-radius:24px;padding:22px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn{border:0;border-radius:999px;padding:12px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;box-shadow:0 14px 24px rgba(0,119,182,.22)}.btn-dark{background:#123044;color:white}.btn-light{background:white;color:#123044}.btn-warning{background:var(--accent);color:#1b1b1b}.btn-danger{background:var(--danger);color:white}.btn-success{background:var(--success);color:white}.section{padding:42px clamp(18px,5vw,80px)}.section-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:20px}.section-title h2{font-size:clamp(28px,4vw,46px);letter-spacing:-.04em;margin:0}.muted{color:var(--muted)}
.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.beach-card{overflow:hidden;padding:0}.beach-card img,.cottage-img{width:100%;height:210px;object-fit:cover;background:#dff5ff}.beach-card .body{padding:18px}.badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#e7f9ee;color:#0a7d4f;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.badge.pending{background:#fff4d1;color:#9a6500}.badge.rejected,.badge.suspended{background:#ffe5e5;color:#b00020}.badge.approved,.badge.active{background:#e6fbf4;color:#087a5a}.badge.warning{background:#fff4d1;color:#9a6500}.price{font-size:28px;font-weight:900;letter-spacing:-.04em}.form{display:grid;gap:14px}.field{display:grid;gap:7px}.field label{font-size:13px;font-weight:900;color:#315065}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:16px;padding:13px 14px;font:inherit;background:white;color:var(--ink)}textarea{min-height:120px;resize:vertical}.alert{margin:16px clamp(18px,5vw,80px);padding:14px 16px;border-radius:16px;font-weight:700}.alert-success{background:#e6fbf4;color:#087a5a}.alert-danger{background:#ffe5e5;color:#b00020}.alert-warning{background:#fff4d1;color:#9a6500}.alert-info{background:#e5f8ff;color:#006494}
.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 80px)}.sidebar{background:#102b3f;color:white;padding:24px;position:sticky;top:81px;height:calc(100vh - 81px)}.sidebar-title{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#9cc9df;margin-bottom:16px;font-weight:900}.sidebar a{display:flex;padding:13px 14px;border-radius:16px;margin:6px 0;color:#ecfbff;font-weight:800}.sidebar a:hover{background:rgba(255,255,255,.12)}.content{padding:28px clamp(18px,3vw,46px)}.stat{display:flex;justify-content:space-between;align-items:center}.stat strong{font-size:34px;letter-spacing:-.04em}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:20px;background:white}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#557085;background:#f6fbfe}.cover{height:360px;border-radius:34px;background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:26px;color:white;box-shadow:var(--shadow);position:relative;overflow:hidden}.cover:before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.1))}.cover>*{position:relative}.booking-panel{position:sticky;top:110px}.footer{padding:28px clamp(18px,5vw,80px);background:#102b3f;color:white;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer span{color:#9cc9df}.chat-launch{position:fixed;right:22px;bottom:22px;z-index:30;border:0;border-radius:999px;padding:16px 18px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;font-weight:900;box-shadow:var(--shadow);cursor:pointer}.chat-box{position:fixed;right:22px;bottom:88px;width:min(390px,calc(100vw - 28px));height:540px;background:white;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);z-index:31;display:none;overflow:hidden}.chat-box.open{display:grid;grid-template-rows:auto 1fr auto}.chat-head{padding:16px 18px;background:#102b3f;color:white;font-weight:900}.chat-body{padding:14px;overflow:auto;background:#f7fcff}.bubble{padding:11px 13px;border-radius:17px;margin:8px 0;max-width:86%;line-height:1.45}.bubble.ai{background:white;border:1px solid var(--line)}.bubble.customer{background:#dcf6ff;margin-left:auto}.chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid var(--line)}.chat-form input{border:1px solid var(--line);border-radius:999px;padding:12px 14px;font:inherit}.empty{padding:36px;text-align:center;color:var(--muted)}
@media(max-width:980px){.hero{grid-template-columns:1fr}.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.app-shell{grid-template-columns:1fr}.sidebar{position:relative;top:auto;height:auto;display:flex;overflow:auto;gap:8px}.sidebar a{white-space:nowrap}.topbar{align-items:flex-start;gap:14px;flex-direction:column}.nav{width:100%}.hero-card{min-height:360px}.booking-panel{position:relative;top:auto}}

/* Reservation, gallery, venue menu and review upgrade */
.soft-rule{border:0;border-top:1px solid var(--line);margin:24px 0}.check-row{display:flex;align-items:center;gap:10px;font-weight:800;color:#315065}.check-row input{width:auto}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.owner-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.owner-gallery__item{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#f7fcff;position:relative}.owner-gallery__item>img{width:100%;height:150px;object-fit:cover}.owner-gallery__item>span{position:absolute;left:8px;top:8px;background:rgba(16,43,63,.84);color:white;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.owner-gallery__actions{display:flex;gap:6px;padding:9px;flex-wrap:wrap}.owner-gallery__actions form{margin:0}.owner-gallery__actions .btn{padding:8px 10px;font-size:11px}
.menu-admin-list{display:grid;gap:14px}.menu-admin-card{display:grid;grid-template-columns:120px 1fr;gap:15px;padding:14px;border:1px solid var(--line);border-radius:20px}.menu-admin-card>img,.menu-admin-card__placeholder{width:120px;height:120px;object-fit:cover;border-radius:16px;background:#e8f7fc;display:grid;place-items:center;font-size:36px}.menu-admin-card h4{margin:8px 0 4px}.menu-admin-card p{margin:8px 0}
.beach-public-cover{min-height:460px}.beach-public-cover h1{font-size:clamp(38px,6vw,72px);margin:12px 0 8px;letter-spacing:-.055em}.review-cover-badge{margin-left:8px;background:#fff3cf;color:#845800}.public-rating{display:flex;align-items:center;gap:9px;margin-top:12px}.stars{color:#f5a800;font-size:20px;letter-spacing:1px}.public-rating span:last-child{color:#e7f6fb}.schedule-pills{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.schedule-pills span{padding:9px 12px;border-radius:999px;background:#eef8fc;color:#315065;font-weight:800;font-size:13px}
.venue-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.venue-menu-card{background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.venue-menu-card>img,.venue-menu-card__placeholder{width:100%;height:180px;object-fit:cover;background:#e8f7fc;display:grid;place-items:center;font-size:44px}.venue-menu-card>div:last-child{padding:18px}.venue-menu-card h3{margin:10px 0 6px}.venue-menu-card .price{font-size:22px}
.public-cottage-list{display:grid;gap:26px}.public-cottage-card{padding:0;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);overflow:hidden}.cottage-gallery{padding:16px;background:#eef8fc}.cottage-gallery__main{height:420px;border-radius:22px;overflow:hidden;position:relative;background:#dff5ff}.cottage-gallery__main img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}.cottage-gallery__count{position:absolute;right:12px;bottom:12px;background:rgba(16,43,63,.84);color:white;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}.cottage-gallery__thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:9px}.cottage-gallery__thumbs button{padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:none;cursor:pointer}.cottage-gallery__thumbs button.active{border-color:var(--primary)}.cottage-gallery__thumbs img{width:100%;height:66px;object-fit:cover;display:block}.public-cottage-card__content{padding:26px}.cottage-title-row{display:flex;justify-content:space-between;gap:18px}.cottage-title-row h3{font-size:30px;margin:9px 0 4px}.cottage-rate-box{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-content:start;text-align:right;white-space:nowrap}.cottage-rate-box strong{font-size:18px}.cottage-rate-box span{font-size:11px;color:var(--muted);align-self:center}.reservation-details{margin-top:18px}.reservation-details>summary{list-style:none}.reservation-details>summary::-webkit-details-marker{display:none}.reservation-details[open]>summary{margin-bottom:18px}.stay-rule{display:block;margin-top:-8px}.booking-menu-list{display:grid;gap:8px;max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:10px}.booking-menu-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px;border-radius:14px;background:#f7fcff}.booking-menu-item span{display:grid}.booking-menu-item small{color:var(--muted)}.booking-menu-item input{width:82px}.booking-cost-summary{background:#102b3f;color:white;border-radius:22px;padding:18px;display:grid;gap:10px}.booking-cost-summary h4{margin:0 0 4px}.booking-cost-summary>div{display:flex;justify-content:space-between;gap:18px}.booking-cost-summary__total{border-top:1px solid rgba(255,255,255,.18);padding-top:12px;font-size:20px}.booking-cost-summary small{color:#a9cede}.flatpickr-day.flatpickr-disabled{background:#ffe8e8;color:#bf6c6c;text-decoration:line-through}.flatpickr-day.selected{background:var(--primary);border-color:var(--primary)}
.public-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.public-review-card__image{width:100%;height:220px;border:0;padding:0;border-radius:18px;overflow:hidden;position:relative;cursor:zoom-in;margin-bottom:14px}.public-review-card__image img{width:100%;height:100%;object-fit:cover}.public-review-card__image span{position:absolute;right:10px;bottom:10px;background:rgba(16,43,63,.84);color:white;padding:6px 9px;border-radius:999px;font-weight:800}.public-review-card h3{margin:8px 0 2px}.image-lightbox{position:fixed;inset:0;background:rgba(3,20,31,.88);z-index:100;display:none;align-items:center;justify-content:center;padding:30px}.image-lightbox.open{display:flex}.image-lightbox img{max-width:min(1100px,92vw);max-height:88vh;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.45)}.image-lightbox button{position:absolute;right:24px;top:20px;width:46px;height:46px;border:0;border-radius:999px;font-size:30px;cursor:pointer}
.booking-admin-list{display:grid;gap:18px}.booking-admin-card__head{display:flex;justify-content:space-between;gap:20px;align-items:start}.booking-admin-card__head h3{margin:10px 0 4px}.booking-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.booking-detail-grid>div{display:grid;gap:5px;padding:14px;border-radius:16px;background:#f7fcff}.booking-detail-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}.booking-detail-grid small{color:var(--muted)}.booking-items-line,.booking-note{padding:12px 14px;border-radius:14px;background:#f6fbfe;margin-top:10px}.booking-admin-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:16px}.booking-admin-actions form{margin:0}.badge.awaiting_downpayment,.badge.submitted{background:#fff4d1;color:#8b6100}.badge.verified{background:#e6fbf4;color:#087a5a}.badge.rejected,.badge.hidden{background:#ffe5e5;color:#b00020}.badge.inactive,.badge.not_required{background:#eef2f4;color:#536b79}
.reservation-page{max-width:1200px;margin:0 auto}.reservation-lookup{max-width:560px;margin:0 auto}.reservation-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;background:linear-gradient(135deg,#ffffff,#eaf9ff)}.reservation-hero h2{margin:10px 0 4px}.reservation-layout{margin-bottom:20px}.reservation-timeline{display:grid;grid-template-columns:1fr 1fr;gap:12px}.reservation-timeline>div{padding:14px;border-radius:16px;background:#f6fbfe;display:grid;gap:5px}.reservation-timeline span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}.cost-row{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}

.cost-row--total{font-size:20px;border-top:2px solid #bad7e5;margin-top:6px; border-bottom:2px  solid #bad7e5; margin-bottom:6px}


.reserved-item-grid{display:grid;gap:8px}.reserved-item-grid>div{display:flex;justify-content:space-between;padding:11px;border-radius:13px;background:#f7fcff}.payment-callout{border:2px solid #62c5e8;margin-top:20px}.star-input{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:5px}.star-input input{position:absolute;opacity:0}.star-input label{font-size:38px;color:#c8d2d8;cursor:pointer}.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:#f5a800}.review-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.review-admin-card__head{display:flex;justify-content:space-between;gap:16px}.review-admin-card h3{margin:6px 0}.review-image-row{display:flex;gap:8px;overflow:auto;margin:12px 0}.review-image-row img{width:100px;height:84px;object-fit:cover;border-radius:12px}
.home-beach-card__rating{display:flex;align-items:center;gap:7px;margin:8px 0;color:#7a5b00;font-weight:800}.home-beach-card__rating .stars{font-size:15px}
@media(max-width:1100px){.venue-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-cottage-card{grid-template-columns:1fr}.public-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.booking-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.grid-3,.venue-menu-grid,.public-review-grid,.review-admin-grid{grid-template-columns:1fr}.owner-gallery{grid-template-columns:1fr}.menu-admin-card{grid-template-columns:90px 1fr}.menu-admin-card>img,.menu-admin-card__placeholder{width:90px;height:90px}.cottage-gallery__main{height:300px}.cottage-gallery__thumbs{grid-template-columns:repeat(4,1fr)}.cottage-title-row,.booking-admin-card__head,.reservation-hero{flex-direction:column}.booking-detail-grid,.reservation-timeline{grid-template-columns:1fr}.public-cottage-card__content{padding:18px}.booking-admin-actions{align-items:stretch}.booking-admin-actions form,.booking-admin-actions .btn{width:100%}}

/* Layout reliability and browser compatibility */
html{background:#f4fbff;scroll-behavior:smooth}
body{min-height:100vh;min-height:100dvh;overflow-x:hidden}
main,.content,.app-shell,.grid,.card{min-width:0}
img{max-width:100%;height:auto}
button,input,select,textarea{max-width:100%}
.topbar{width:100%;isolation:isolate}
.brand>span:last-child,.nav{min-width:0}
.table-wrap{-webkit-overflow-scrolling:touch}

/* Solid-color fallbacks for browsers that do not support glass effects. */
@supports not ((-webkit-backdrop-filter:blur(2px)) or (backdrop-filter:blur(2px))){
  .topbar{background:#fff}
  .glass{background:rgba(10,66,88,.94)}
}

@media(max-width:980px){
  .topbar{position:relative;top:auto;padding:14px 16px}
  .brand{width:100%}
  .nav{width:100%;max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 6px;scrollbar-width:thin}
  .nav a{flex:0 0 auto;white-space:nowrap}
  .sidebar{-webkit-overflow-scrolling:touch}
}

@media(max-width:620px){
  .brand-mark{width:42px;height:42px;border-radius:14px}
  .brand small{display:none}
  .content{padding:20px 14px}
  .section{padding-right:14px;padding-left:14px}
  .footer{padding:24px 16px}
  .chat-launch{right:14px;bottom:14px}
  .chat-box{right:14px;bottom:78px;width:calc(100vw - 28px);height:min(540px,calc(100dvh - 110px))}
}

/* Overnight-default and walk-in reservation selector */
.reservation-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reservation-type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.reservation-type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.reservation-type-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
}
.reservation-type-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.reservation-type-card span,
.reservation-type-card strong,
.reservation-type-card small {
  display: block;
  min-width: 0;
}
.reservation-type-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.stay-rule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: -4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(2, 132, 199, .07);
}
[hidden] { display: none !important; }

@media (max-width: 680px) {
  .reservation-type-options { grid-template-columns: 1fr; }
}

/* During check-in charges and outstanding payment tracker */
.booking-total-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  min-width: 150px;
}
.booking-total-stack small {
  color: var(--muted);
  font-weight: 800;
}
.booking-total-stack span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4d1;
  color: #8b6100;
  font-size: 12px;
  font-weight: 900;
}
.badge.unpaid,
.badge.is-unpaid,
.badge.not_paid {
  background: #fff4d1;
  color: #8b6100;
}
.badge.paid {
  background: #e6fbf4;
  color: #087a5a;
}
.checkin-charges-panel,
.checkin-charges-customer {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #cfe7f2;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f3fbff);
}
.checkin-charges-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: start;
}
.checkin-charges-head h3,
.checkin-charges-head h4 {
  margin: 10px 0 6px;
}
.checkin-charge-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.checkin-charge-totals span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fcff;
  border: 1px solid var(--line);
}
.checkin-charge-totals small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.checkin-charge-totals strong {
  font-size: 18px;
  letter-spacing: -.02em;
}
.checkin-charge-totals .is-unpaid {
  background: #fff8df;
  border-color: #f3d27a;
}
.checkin-charge-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.checkin-charge-row {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 90px 115px 115px auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.checkin-charge-list.customer-view .checkin-charge-row {
  grid-template-columns: minmax(230px, 1fr) 90px 115px 115px;
}
.checkin-charge-row.is-unpaid {
  border-color: #f0d48a;
  background: #fffdf5;
}
.checkin-charge-row.is-paid {
  border-color: #cceee4;
}
.checkin-charge-row > div,
.checkin-charge-row > details {
  min-width: 0;
}
.checkin-charge-row strong,
.checkin-charge-row small {
  display: block;
}
.checkin-charge-row small {
  color: var(--muted);
}
.checkin-charge-edit summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eef8fc;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.checkin-charge-edit summary::-webkit-details-marker {
  display: none;
}
.checkin-charge-edit[open] {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.checkin-charge-form,
.checkin-charge-add-form {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 90px 130px 160px auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.checkin-charge-delete-form {
  margin-top: 10px;
}
.checkin-charge-empty {
  margin-top: 14px;
  box-shadow: none;
  border: 1px dashed var(--line);
  background: #f7fcff;
}

@media (max-width: 1160px) {
  .checkin-charges-head {
    grid-template-columns: 1fr;
  }
  .checkin-charge-form,
  .checkin-charge-add-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checkin-charge-form .field-wide,
  .checkin-charge-add-form .field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .booking-total-stack {
    justify-items: start;
    text-align: left;
    width: 100%;
  }
  .checkin-charges-panel,
  .checkin-charges-customer {
    padding: 14px;
    border-radius: 18px;
  }
  .checkin-charge-totals {
    grid-template-columns: 1fr;
  }
  .checkin-charge-row,
  .checkin-charge-list.customer-view .checkin-charge-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .checkin-charge-row > div:not(:first-child) {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .checkin-charge-form,
  .checkin-charge-add-form {
    grid-template-columns: 1fr;
  }
  .checkin-charge-form .btn,
  .checkin-charge-add-form .btn,
  .checkin-charge-delete-form .btn {
    width: 100%;
  }
}

/* Customer during check-in details modal */
.cost-label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.circle-info-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e5f8ff;
  color: #006494;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #b9e4f4;
}
.circle-info-btn:hover,
.circle-info-btn:focus-visible {
  background: #006494;
  color: #fff;
  outline: none;
}
body.checkin-modal-open {
  overflow: hidden;
}
.checkin-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.checkin-details-modal.is-open {
  display: flex;
}
.checkin-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 50, .62);
  backdrop-filter: blur(5px);
}
.checkin-details-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 80px rgba(12, 35, 50, .28);
}
.checkin-details-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.checkin-details-modal__head h3 {
  margin: 10px 0 5px;
}
.checkin-details-modal__head p {
  margin: 0;
  line-height: 1.55;
}
.checkin-details-modal__close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef8fc;
  color: #123044;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}
.checkin-details-modal__close:hover,
.checkin-details-modal__close:focus-visible {
  background: #102b3f;
  color: #fff;
  outline: none;
}
.checkin-details-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  background: #e6fbf4;
  color: #087a5a;
  font-weight: 900;
}
.checkin-details-modal__total.is-unpaid {
  background: #fff4d1;
  color: #8b6100;
}
.checkin-details-modal__total strong {
  font-size: 22px;
  letter-spacing: -.02em;
}
.checkin-details-modal__list {
  display: grid;
  gap: 10px;
}
.checkin-details-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, .9fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fcff;
}
.checkin-details-item.is-paid {
  border-color: #cceee4;
  background: #f8fffc;
}
.checkin-details-item.is-unpaid {
  border-color: #f0d48a;
  background: #fffdf5;
}
.checkin-details-item strong,
.checkin-details-item small {
  display: block;
}
.checkin-details-item small {
  margin-top: 4px;
  color: var(--muted);
}
.checkin-details-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.checkin-details-item dl > div {
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.checkin-details-item dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.checkin-details-item dd {
  margin: 0;
  font-weight: 900;
}
.checkin-details-empty {
  margin: 14px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #f7fcff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 720px) {
  .checkin-details-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .checkin-details-modal__dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 16px 16px;
    padding: 15px;
  }
  .checkin-details-modal__head {
    gap: 10px;
  }
  .checkin-details-modal__head .eyebrow {
    font-size: 11px;
    padding: 7px 10px;
  }
  .checkin-details-modal__total {
    align-items: flex-start;
    flex-direction: column;
  }
  .checkin-details-item {
    grid-template-columns: 1fr;
  }
  .checkin-details-item dl {
    grid-template-columns: 1fr;
  }
  .checkin-details-item dl > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .checkin-details-item dt {
    margin: 0;
  }
  .cost-row {
    align-items: flex-start;
  }
}

/* Owner and attendant account separation */
.sidebar-title small {
  display: block;
  margin-top: 6px;
  letter-spacing: normal;
  text-transform: none;
  color: #ecfbff;
  font-size: 12px;
  font-weight: 800;
}
.stat-restricted {
  background: linear-gradient(135deg, #ffffff, #fff8e5);
  border: 1px solid #f3d58f;
}
.stat-restricted strong {
  color: #8b6100;
  font-size: 22px;
}
.stat-restricted small {
  color: var(--muted);
  font-weight: 800;
}
.attendant-page .section-title {
  align-items: flex-start;
}
.attendant-layout {
  align-items: start;
  margin-bottom: 20px;
}
.attendant-form-card,
.attendant-permission-card,
.attendant-list-card {
  overflow: hidden;
}
.permission-list {
  display: grid;
  gap: 12px;
}
.permission-list > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: #f7fcff;
  border: 1px solid var(--line);
}
.permission-list span {
  color: var(--muted);
  line-height: 1.5;
}
.compact-title {
  margin-bottom: 14px;
}
.compact-title h3 {
  margin: 6px 0 0;
}
.attendant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.attendant-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f7fcff);
  min-width: 0;
}
.attendant-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.attendant-card h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.attendant-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.attendant-card__meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(220, 233, 242, .9);
}
.attendant-card__meta small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}
.attendant-card__meta strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.attendant-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.attendant-card__actions form,
.attendant-actions {
  margin: 0;
}
.attendant-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

@media (max-width: 980px) {
  .sidebar-title {
    flex: 0 0 auto;
    min-width: 160px;
    margin: 6px 10px 6px 0;
  }
  .attendant-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .attendant-page .section-title,
  .compact-title,
  .attendant-card__head {
    flex-direction: column;
  }
  .attendant-card__meta {
    grid-template-columns: 1fr;
  }
  .attendant-card__actions .btn,
  .attendant-card__actions form,
  .attendant-actions .btn {
    width: 100%;
  }
}

/* Owner / attendant navbar fix */
.owner-sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}
.owner-sidebar .owner-menu {
  display: block;
}
.owner-sidebar .owner-menu__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.owner-sidebar .owner-menu__summary::-webkit-details-marker {
  display: none;
}
.owner-sidebar .owner-menu__summary > span:first-child {
  display: block;
}
.owner-sidebar .owner-menu__toggle {
  display: none;
}
.owner-sidebar .owner-menu__links {
  display: grid;
  gap: 6px;
}
.owner-sidebar .owner-menu__links a {
  align-items: center;
  min-height: 44px;
  line-height: 1.25;
}
.owner-sidebar .owner-menu__links a.active {
  background: rgba(255,255,255,.17);
  color: #ffffff;
  box-shadow: inset 4px 0 0 #00b4d8;
}
.owner-sidebar .owner-menu__logout {
  margin-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }
  .owner-sidebar {
    position: sticky;
    top: 0;
    z-index: 18;
    height: auto;
    padding: 12px;
    border-bottom: 1px solid rgba(220,233,242,.55);
    box-shadow: 0 12px 28px rgba(18,48,68,.14);
  }
  .owner-sidebar .owner-menu__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 4px 2px;
  }
  .owner-sidebar .owner-menu__summary > span:first-child {
    min-width: 0;
  }
  .owner-sidebar .owner-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #ffffff;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 900;
  }
  .owner-sidebar .owner-menu__toggle::after {
    content: '▴';
    margin-left: 8px;
    font-size: 10px;
  }
  .owner-sidebar .owner-menu:not([open]) .owner-menu__toggle::after {
    content: '▾';
  }
  .owner-sidebar .owner-menu__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(62vh, 430px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .owner-sidebar .owner-menu__links a {
    white-space: normal;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
  }
  .owner-sidebar .owner-menu__links a.active {
    box-shadow: inset 0 -3px 0 #00b4d8;
  }
  .owner-sidebar .owner-menu__logout {
    margin-top: 0 !important;
    border-top: 0;
  }
}

@media (max-width: 560px) {
  .owner-sidebar {
    padding: 11px;
  }
  .owner-sidebar .sidebar-title {
    font-size: 12px;
    letter-spacing: .09em;
  }
  .owner-sidebar .sidebar-title small {
    font-size: 11px;
  }
  .owner-sidebar .owner-menu__links {
    grid-template-columns: 1fr;
    max-height: min(68vh, 460px);
  }
  .owner-sidebar .owner-menu__links a {
    min-height: 40px;
    font-size: 13px;
  }
}

/* Public top navbar stability for smaller screens */
@media (max-width: 760px) {
  .topbar .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .topbar .nav a {
    flex: 0 0 auto;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Operations checkout, attendant privacy, sticky sidebar, and review carousel fixes */
.app-shell{
  align-items:start;
}
.owner-sidebar{
  position:sticky;
  top:82px;
  align-self:start;
  max-height:calc(100vh - 82px);
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
}
.checkout-modal,
.checkin-details-modal{
  display:none;
}
.checkout-modal.is-open{
  position:fixed;
  inset:0;
  z-index:150;
  display:grid;
  place-items:center;
  padding:24px;
}
.checkout-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,20,31,.68);
  backdrop-filter:blur(6px);
}
.checkout-modal__dialog{
  position:relative;
  z-index:1;
  width:min(720px,100%);
  max-height:min(86vh,760px);
  overflow:auto;
  border-radius:26px;
  background:#fff;
  box-shadow:0 32px 90px rgba(3,20,31,.35);
  padding:24px;
}
.checkout-modal__head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.checkout-modal__head h3{margin:6px 0 8px;font-size:24px}
.checkout-modal__close{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#eef8fc;
  color:#102b3f;
  cursor:pointer;
  font-size:24px;
  font-weight:900;
}
.checkout-modal__summary{
  margin:18px 0;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(135deg,#102b3f,#0f5d7a);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}
.checkout-modal__summary span{color:#b8e8f6;font-weight:800}
.checkout-modal__summary strong{font-size:28px}
.checkout-modal__list{display:grid;gap:10px;margin:0 0 18px}
.checkout-modal__item{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f7fcff;
}
.checkout-modal__item small{display:block;color:var(--muted);margin-top:4px}
.checkout-modal__empty{
  padding:18px;
  border:1px dashed var(--line);
  border-radius:16px;
  color:var(--muted);
  text-align:center;
}
.checkout-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
}
body.checkout-modal-open{overflow:hidden}
.checkout-result{border-color:#bae6fd;background:#eff6ff;color:#075985}
.price.muted{font-size:18px;color:var(--muted)}
.image-lightbox figure{
  margin:0;
  display:grid;
  justify-items:center;
  gap:12px;
}
.image-lightbox figcaption{
  color:#fff;
  font-weight:900;
  background:rgba(255,255,255,.14);
  padding:7px 12px;
  border-radius:999px;
}
.image-lightbox .image-lightbox__close{
  position:absolute;
  right:24px;
  top:20px;
  width:46px;
  height:46px;
  border:0;
  border-radius:999px;
  font-size:30px;
  cursor:pointer;
  z-index:2;
}
.image-lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#102b3f;
  font-size:42px;
  line-height:1;
  cursor:pointer;
  z-index:2;
  box-shadow:0 16px 35px rgba(0,0,0,.25);
}
.image-lightbox__nav--prev{left:24px}
.image-lightbox__nav--next{right:24px}
.image-lightbox__nav[hidden]{display:none!important}
@media(max-width:980px){
  .owner-sidebar{
    top:0;
    max-height:none;
    height:auto;
  }
}
@media(max-width:700px){
  .checkout-modal{padding:12px}
  .checkout-modal__dialog{padding:18px;border-radius:22px}
  .checkout-modal__head,.checkout-modal__summary,.checkout-modal__item{flex-direction:column}
  .checkout-modal__actions .btn{width:100%}
  .image-lightbox__nav{width:44px;height:44px;font-size:34px}
  .image-lightbox__nav--prev{left:10px}
  .image-lightbox__nav--next{right:10px}
}

/* Professional review-photo lightbox: mobile + desktop refinement */
.image-lightbox{
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px,2.4vw,32px);
  background:
    radial-gradient(circle at 30% 20%,rgba(20,184,166,.20),transparent 32%),
    radial-gradient(circle at 80% 80%,rgba(56,189,248,.16),transparent 34%),
    rgba(2,14,23,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.image-lightbox.open{display:flex}
body.lightbox-open{overflow:hidden;touch-action:none}
.image-lightbox__surface{
  width:min(1180px,100%);
  max-height:min(92vh,900px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.07));
  box-shadow:0 30px 90px rgba(0,0,0,.50);
}
.image-lightbox__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:54px;
  padding:6px 8px 6px 14px;
  color:#fff;
}
.image-lightbox__eyebrow{
  display:block;
  color:rgba(226,246,255,.78);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:3px;
}
.image-lightbox__toolbar strong,
.image-lightbox figcaption{
  color:#fff;
  font-weight:900;
  background:transparent;
  padding:0;
  border-radius:0;
}
.image-lightbox .image-lightbox__close{
  position:static;
  flex:0 0 auto;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#0f2537;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(0,0,0,.24);
}
.image-lightbox__stage{
  position:relative;
  min-height:0;
  display:grid;
  align-items:center;
  justify-items:center;
  padding:0 72px;
}
.image-lightbox .image-lightbox__figure{
  width:100%;
  height:100%;
  min-height:280px;
  margin:0;
  display:grid;
  place-items:center;
}
.image-lightbox .image-lightbox__figure img,
.image-lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:calc(92vh - 150px);
  object-fit:contain;
  border-radius:22px;
  background:rgba(15,35,51,.40);
  box-shadow:0 24px 70px rgba(0,0,0,.48);
}
.image-lightbox .image-lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#0f2537;
  font-size:42px;
  line-height:1;
  cursor:pointer;
  z-index:3;
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  transition:transform .18s ease,background .18s ease,opacity .18s ease;
}
.image-lightbox .image-lightbox__nav:hover,
.image-lightbox .image-lightbox__close:hover,
.image-lightbox .image-lightbox__action:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.04);
}
.image-lightbox .image-lightbox__close:hover,
.image-lightbox .image-lightbox__action:hover{transform:scale(1.04)}
.image-lightbox .image-lightbox__nav--prev{left:4px}
.image-lightbox .image-lightbox__nav--next{right:4px}
.image-lightbox .image-lightbox__nav[hidden],
.image-lightbox .image-lightbox__action[hidden]{display:none!important}
.image-lightbox__mobile-actions{
  display:none;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
}
.image-lightbox .image-lightbox__action{
  position:static;
  width:auto;
  height:46px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#0f2537;
  font-size:14px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  padding:0 16px;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.image-lightbox .image-lightbox__action--close{
  background:rgba(15,35,51,.88);
  color:#fff;
}
@media(max-width:900px){
  .image-lightbox{padding:10px}
  .image-lightbox__surface{
    min-height:calc(100dvh - 20px);
    max-height:calc(100dvh - 20px);
    border-radius:24px;
    padding:10px;
    gap:10px;
  }
  .image-lightbox__toolbar{padding:4px 4px 4px 10px;min-height:50px}
  .image-lightbox__stage{padding:0;align-content:center}
  .image-lightbox .image-lightbox__figure{min-height:0;height:100%}
  .image-lightbox .image-lightbox__figure img,
  .image-lightbox img{
    max-height:calc(100dvh - 170px);
    border-radius:18px;
  }
  .image-lightbox .image-lightbox__nav{
    display:none;
  }
  .image-lightbox__mobile-actions{
    display:grid;
    padding:0 2px 2px;
  }
}
@media(max-width:520px){
  .image-lightbox__surface{border-radius:20px}
  .image-lightbox__toolbar strong{font-size:14px}
  .image-lightbox__eyebrow{font-size:10px}
  .image-lightbox .image-lightbox__close{width:40px;height:40px;font-size:26px}
  .image-lightbox .image-lightbox__action{height:44px;padding:0 12px;font-size:13px}
  .image-lightbox__mobile-actions{grid-template-columns:1fr 1fr 1fr;gap:8px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .image-lightbox{background:rgba(2,14,23,.96)}
}

/* Booking compact cards, sticky sidebars, ledgers, and platform income */
.app-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  align-items:start;
}
.sidebar,
.owner-sidebar{
  position:sticky!important;
  top:12px!important;
  align-self:start!important;
  height:calc(100dvh - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  z-index:20;
}
.owner-sidebar .owner-menu{min-height:100%}
.booking-admin-card{overflow:visible}
.booking-card-details{
  margin-top:14px;
  border-top:1px solid var(--line);
  padding-top:12px;
}
.booking-card-details>summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  padding:12px 16px;
  border:1px solid rgba(14,165,233,.18);
  border-radius:16px;
  background:linear-gradient(135deg,#f4fbff,#ffffff);
  color:#0f2537;
  font-weight:900;
  box-shadow:0 8px 18px rgba(15,35,51,.05);
}
.booking-card-details>summary::-webkit-details-marker{display:none}
.booking-card-details>summary::after{
  content:'Show details';
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  background:#102b3f;
  color:#fff;
  font-size:12px;
  letter-spacing:.02em;
}
.booking-card-details[open]>summary::after{content:'Hide details';background:#e8f7fc;color:#0f2537}
.booking-card-details>summary small{display:block;color:var(--muted);font-weight:700;margin-top:2px}
.booking-card-details[open]{padding-bottom:2px}
.booking-card-details[open] .booking-detail-grid{animation:bookingDetailsIn .18s ease-out both}
@keyframes bookingDetailsIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.booking-admin-card__head{margin-bottom:0}
.booking-total-stack{text-align:right;display:grid;gap:4px;justify-items:end}
.booking-total-stack span{font-weight:900;color:#b45309;font-size:13px}
.checkin-charge-row.is-locked,
.checkin-charges-panel.is-locked{opacity:.96}
.locked-note{padding:12px 14px;border-radius:14px;background:#eef8fb;color:#4b6472;font-weight:800;margin-top:12px}
.ledger-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.ledger-filter .field{margin:0;min-width:180px}
.ledger-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px;background:linear-gradient(135deg,#f5fbff,#ffffff)}
.ledger-header h3{margin:5px 0;font-size:28px}
.ledger-generated{text-align:right;display:grid;gap:4px;color:var(--muted)}
.ledger-generated strong{color:#102b3f}
.ledger-summary{margin:18px 0}
.ledger-card__title{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}
.ledger-card__title h3{margin:0}.ledger-card__title span{color:var(--muted);font-weight:800}
.amount-col{text-align:right;white-space:nowrap}
.ledger-table tfoot th{background:#102b3f;color:#fff;font-size:15px}
.platform-summary{margin-bottom:18px}
.platform-percent-form{flex-wrap:nowrap}.platform-percent-form input{width:96px;padding:10px 12px;border:1px solid var(--line);border-radius:12px}
.platform-beach-summary,.platform-detail-card{margin-top:18px}
.platform-detail-card .badge.awaiting_downpayment{background:#fff4d1;color:#8b6100}
@media(max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar,.owner-sidebar{position:relative!important;top:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
  .owner-sidebar .owner-menu__links{max-height:65vh;overflow:auto}
}
@media(max-width:700px){
  .booking-card-details>summary{align-items:flex-start;flex-direction:column}
  .booking-card-details>summary::after{align-self:stretch;text-align:center}
  .booking-total-stack{text-align:left;justify-items:start}
  .ledger-header,.ledger-card__title{align-items:flex-start;flex-direction:column}
  .ledger-generated{text-align:left}
  .ledger-filter .field,.ledger-filter .btn{width:100%}
  .platform-percent-form{display:grid;grid-template-columns:1fr auto;width:100%}
}
@media print{
  .topbar,.footer,.sidebar,.owner-sidebar,.ledger-print-hide,.nav,.btn,.platform-percent-form,.actions{display:none!important}
  .app-shell{display:block!important}.content{padding:0!important}.card{box-shadow:none!important;border:1px solid #d9e4ea!important;break-inside:avoid}
  body{background:#fff!important;color:#111!important}.table-wrap{overflow:visible!important}table{min-width:0!important;font-size:12px}
}

/* Additional cottages acquired during check-in */
.extra-cottage-panel{
    margin-top:18px;
    border:1px solid rgba(14,165,233,.18);
    background:linear-gradient(180deg, rgba(240,249,255,.9), rgba(255,255,255,.96));
    border-radius:18px;
    padding:18px;
}
.extra-cottage-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.extra-cottage-head h4{margin:4px 0 6px;font-size:18px;color:#0f172a}
.extra-cottage-list{display:grid;gap:10px;margin-bottom:14px}
.extra-cottage-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:14px;
    align-items:center;
    padding:14px;
    border:1px solid var(--line, #dbe4ea);
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.extra-cottage-row strong{display:block;color:#0f172a}
.extra-cottage-row small{display:block;color:#64748b;margin-top:4px;line-height:1.45}
.extra-cottage-row.is-released{opacity:.68;background:#f8fafc}
.extra-cottage-add-form{
    display:grid;
    grid-template-columns:minmax(220px,1.4fr) minmax(120px,.55fr) minmax(180px,.75fr);
    gap:12px;
    align-items:end;
    padding:14px;
    border:1px dashed rgba(14,165,233,.35);
    border-radius:16px;
    background:rgba(255,255,255,.82);
}
.extra-cottage-add-form .field-wide{grid-column:auto}
.extra-cottage-add-form button{align-self:end}
.extra-cottage-empty{margin-bottom:12px}
@media (max-width: 900px){
    .extra-cottage-row{grid-template-columns:1fr}
    .extra-cottage-add-form{grid-template-columns:1fr}
    .extra-cottage-add-form .field-wide{grid-column:auto}
}

/* Extra cottage custom stay controls */
.extra-cottage-add-form .js-extra-cottage-preview {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
  font-weight: 600;
}
.extra-cottage-row small {
  line-height: 1.45;
}

/* Pending queue badges, booking sorting tabs, and final extra-cottage lock */
.owner-sidebar .owner-menu__links a{
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.nav-badge{
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:950;
  letter-spacing:-.02em;
  box-shadow:0 8px 18px rgba(239,68,68,.32);
}
.owner-sidebar .owner-menu__links a.active .nav-badge{background:#fff;color:#0f766e;box-shadow:none}
.booking-titlebar{align-items:flex-start}
.booking-filter-form select{min-width:210px}
.booking-status-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}
.booking-status-tabs a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.booking-status-tabs a strong{
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:#edf7fb;
  color:#0f6f86;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}
.booking-status-tabs a.active{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  border-color:transparent;
  color:#fff;
}
.booking-status-tabs a.active strong{background:rgba(255,255,255,.18);color:#fff}
.pending-queue-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.pending-queue-notice a{font-weight:900;color:#0f6f86;text-decoration:underline;text-underline-offset:3px}
.badge.queue-badge{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.badge.locked{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}
.extra-cottage-row .badge.locked{margin-left:4px}

/* Stronger sticky owner sidebar for long booking pages */
@media (min-width:981px){
  .app-shell{
    align-items:flex-start!important;
    overflow:visible!important;
  }
  .sidebar.owner-sidebar,
  .owner-sidebar{
    position:sticky!important;
    top:0!important;
    height:100vh!important;
    max-height:100vh!important;
    overflow:hidden!important;
    align-self:flex-start!important;
  }
  .owner-sidebar .owner-menu{
    height:100%;
    min-height:100%;
    display:flex;
    flex-direction:column;
  }
  .owner-sidebar .owner-menu__links{
    overflow-y:auto;
    padding-right:4px;
    -webkit-overflow-scrolling:touch;
  }
}
@media (max-width:700px){
  .booking-status-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .booking-status-tabs a{justify-content:space-between;border-radius:16px;padding:10px 12px}
  .booking-filter-form{width:100%}
  .booking-filter-form select{width:100%}
}

/* Extra cottage lock: confirmed additional cottages cannot be edited or deleted */
.checkin-charge-row.is-locked-extra{
  border-color:#c7d2fe;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
}
.locked-extra-note{
  display:flex;
  flex-direction:column;
  gap:2px;
  align-items:flex-start;
  padding:10px 12px;
  border:1px solid #c7d2fe;
  border-radius:14px;
  background:#eef2ff;
  color:#3730a3;
  max-width:260px;
}
.locked-extra-note strong{font-size:13px;letter-spacing:.03em;text-transform:uppercase}
.locked-extra-note small{font-size:12px;line-height:1.35;color:#4338ca}
@media(max-width:720px){.locked-extra-note{max-width:none;width:100%}}

/* Public beach menu filters and horizontal scrolling */
.venue-menu-filters{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:-6px 0 16px;
}
.venue-menu-filter{
  border:1px solid var(--line);
  background:white;
  color:#123044;
  border-radius:999px;
  padding:10px 16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,54,84,.07);
  transition:.18s ease;
}
.venue-menu-filter:hover,
.venue-menu-filter.active{
  border-color:transparent;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  box-shadow:0 14px 24px rgba(0,119,182,.18);
}
.venue-menu-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 4px 14px;
  margin:0 -4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.venue-menu-scroll::-webkit-scrollbar{height:10px}
.venue-menu-scroll::-webkit-scrollbar-track{background:#e8f7fc;border-radius:999px}
.venue-menu-scroll::-webkit-scrollbar-thumb{background:#90d8ed;border-radius:999px}
.venue-menu-scroll::-webkit-scrollbar-thumb:hover{background:#5fc4e0}
.venue-menu-grid{
  display:flex;
  align-items:stretch;
  gap:18px;
  min-width:max-content;
}
.venue-menu-card{
  flex:0 0 clamp(250px,24vw,310px);
  display:flex;
  flex-direction:column;
}
.venue-menu-card[hidden]{display:none!important}
.venue-menu-empty{
  margin-top:12px;
  padding:16px;
  border:1px dashed var(--line);
  border-radius:18px;
  background:#f7fcff;
  color:var(--muted);
  font-weight:800;
  text-align:center;
}
@media(max-width:700px){
  .venue-menu-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:8px;
    margin-right:-18px;
    -webkit-overflow-scrolling:touch;
  }
  .venue-menu-filter{flex:0 0 auto;padding:9px 14px}
  .venue-menu-scroll{
    margin-right:-18px;
    padding-right:18px;
  }
  .venue-menu-card{flex-basis:min(82vw,320px)}
}

/* Cottage viewer with Previous/Next controls */
.public-cottage-carousel{
  position:relative;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 74px;
  gap:14px;
  align-items:center;
  margin-top:8px;
}
.public-cottage-viewport{
  min-width:0;
  overflow:hidden;
  border-radius:var(--radius);
}
.public-cottage-list--carousel{
  display:block;
  min-width:0;
}
.public-cottage-carousel.is-enhanced .public-cottage-list--carousel{
  display:grid;
  gap:0;
}
.public-cottage-carousel.is-enhanced [data-cottage-slide]{
  display:none;
  opacity:0;
  transform:translateY(8px);
}
.public-cottage-carousel.is-enhanced [data-cottage-slide].is-active{
  display:grid;
  opacity:1;
  transform:translateY(0);
  animation:cottageSlideFade .24s ease both;
}
@keyframes cottageSlideFade{
  from{opacity:0;transform:translateY(10px) scale(.992)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.cottage-carousel-btn{
  width:64px;
  height:64px;
  border:1px solid rgba(0,119,182,.16);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(232,247,252,.96));
  color:#123044;
  box-shadow:0 18px 36px rgba(15,54,84,.14);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:.18s ease;
  z-index:3;
}
.cottage-carousel-btn span{
  font-size:38px;
  line-height:1;
  font-weight:700;
  margin-top:-3px;
}
.cottage-carousel-btn em{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.cottage-carousel-btn:hover,
.cottage-carousel-btn:focus-visible{
  border-color:transparent;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  box-shadow:0 20px 42px rgba(0,119,182,.24);
  transform:translateY(-1px);
}
.cottage-carousel-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.cottage-carousel-status{
  grid-column:2;
  justify-self:center;
  margin-top:2px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:#315065;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(15,54,84,.08);
}
.public-cottage-carousel:not(.is-enhanced) .cottage-carousel-btn,
.public-cottage-carousel:not(.is-enhanced) .cottage-carousel-status{display:none}
@media(max-width:1100px){
  .public-cottage-carousel{
    grid-template-columns:58px minmax(0,1fr) 58px;
    gap:10px;
  }
  .cottage-carousel-btn{width:54px;height:54px}
  .cottage-carousel-btn span{font-size:34px}
}
@media(max-width:700px){
  .public-cottage-carousel{
    grid-template-columns:1fr 1fr;
    gap:12px;
    align-items:stretch;
  }
  .public-cottage-viewport{
    grid-column:1 / -1;
    grid-row:1;
    border-radius:24px;
  }
  .cottage-carousel-btn{
    grid-row:2;
    width:100%;
    height:auto;
    min-height:48px;
    border-radius:18px;
    padding:10px 12px;
    box-shadow:0 12px 24px rgba(15,54,84,.10);
  }
  .cottage-carousel-btn--prev{grid-column:1}
  .cottage-carousel-btn--next{grid-column:2}
  .cottage-carousel-btn span{font-size:26px;margin-top:-2px}
  .cottage-carousel-btn em{
    position:static;
    width:auto;
    height:auto;
    clip:auto;
    overflow:visible;
    white-space:normal;
    font-style:normal;
    font-size:13px;
    font-weight:900;
  }
  .cottage-carousel-status{
    grid-column:1 / -1;
    grid-row:3;
    margin-top:0;
    justify-self:stretch;
    text-align:center;
  }
  .public-cottage-carousel.is-enhanced [data-cottage-slide].is-active{display:block}
  .public-cottage-card{border-radius:24px}
}
@media(prefers-reduced-motion:reduce){
  .public-cottage-carousel.is-enhanced [data-cottage-slide].is-active{animation:none}
  .cottage-carousel-btn{transition:none}
}
.public-cottage-carousel--single{grid-template-columns:minmax(0,1fr)}
.public-cottage-carousel--single .public-cottage-viewport{grid-column:1}
@media(max-width:700px){.public-cottage-carousel--single{grid-template-columns:minmax(0,1fr)}}

/* Fixed collapsible owner sidebar with attached arrow toggle */
:root{
  --owner-sidebar-width:280px;
  --owner-sidebar-top:82px;
  --owner-sidebar-gap:14px;
}
body:has(.owner-sidebar){
  overflow-x:hidden;
}
.app-shell:has(.owner-sidebar),
.app-shell.owner-shell-fixed{
  display:block!important;
  min-height:calc(100dvh - var(--owner-sidebar-top));
  padding-left:var(--owner-sidebar-width)!important;
  transition:padding-left .28s ease;
}
.owner-sidebar{
  position:fixed!important;
  top:var(--owner-sidebar-top)!important;
  left:var(--owner-sidebar-gap)!important;
  bottom:var(--owner-sidebar-gap)!important;
  width:calc(var(--owner-sidebar-width) - (var(--owner-sidebar-gap) * 2))!important;
  height:auto!important;
  max-height:none!important;
  z-index:90;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,#102b3f 0%,#0d2233 100%);
  box-shadow:0 24px 60px rgba(3,20,31,.24);
  overflow-y:auto!important;
  overflow-x:visible!important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  transition:transform .28s ease, box-shadow .28s ease;
  will-change:transform;
}
.owner-sidebar::-webkit-scrollbar{width:8px}
.owner-sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.owner-sidebar .owner-menu__summary{
  cursor:default;
}
.owner-sidebar .owner-menu__links a{
  position:relative;
  gap:10px;
  justify-content:space-between;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.owner-sidebar .owner-menu__links a:hover{
  transform:translateX(3px);
}
.owner-sidebar__edge-toggle{
  position:fixed;
  top:calc(var(--owner-sidebar-top) + 22px);
  left:calc(var(--owner-sidebar-width) - 28px);
  z-index:92;
  width:38px;
  height:58px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:0 999px 999px 0;
  background:linear-gradient(135deg,#00b4d8,#0077b6);
  color:#fff;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(0,119,182,.32);
  font-size:24px;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.owner-sidebar__edge-toggle:hover,
.owner-sidebar__edge-toggle:focus-visible{
  filter:brightness(1.06);
  box-shadow:0 18px 38px rgba(0,119,182,.42);
  outline:none;
}
.owner-sidebar__edge-toggle span{
  display:block;
  transform:translateX(-1px);
}
body.owner-sidebar-collapsed .app-shell:has(.owner-sidebar),
body.owner-sidebar-collapsed .app-shell.owner-shell-fixed{
  padding-left:0!important;
}
body.owner-sidebar-collapsed .owner-sidebar{
  transform:translateX(calc(-100% - var(--owner-sidebar-gap)));
  box-shadow:0 16px 36px rgba(3,20,31,.18);
}
body.owner-sidebar-collapsed .owner-sidebar__edge-toggle{
  left:0;
  border-radius:0 999px 999px 0;
}
body.owner-sidebar-collapsed .owner-sidebar__edge-toggle span{
  transform:translateX(1px);
}
.content{
  transition:padding .28s ease;
}
@media(max-width:980px){
  :root{
    --owner-sidebar-width:min(86vw,318px);
    --owner-sidebar-top:0px;
    --owner-sidebar-gap:10px;
  }
  .app-shell:has(.owner-sidebar),
  .app-shell.owner-shell-fixed,
  body.owner-sidebar-collapsed .app-shell:has(.owner-sidebar),
  body.owner-sidebar-collapsed .app-shell.owner-shell-fixed{
    padding-left:0!important;
  }
  .owner-sidebar{
    top:var(--owner-sidebar-gap)!important;
    bottom:var(--owner-sidebar-gap)!important;
    left:var(--owner-sidebar-gap)!important;
    width:calc(var(--owner-sidebar-width) - (var(--owner-sidebar-gap) * 2))!important;
    height:auto!important;
    max-height:none!important;
    padding:18px!important;
    border-radius:24px;
    box-shadow:0 26px 70px rgba(3,20,31,.35);
  }
  .owner-sidebar__edge-toggle{
    top:78px;
    left:calc(var(--owner-sidebar-width) - 18px);
    width:40px;
    height:62px;
    border-radius:0 999px 999px 0;
  }
  body:not(.owner-sidebar-collapsed) .owner-sidebar::before{
    content:'';
    position:fixed;
    inset:calc(var(--owner-sidebar-gap) * -1);
    left:calc(var(--owner-sidebar-width) - 4px);
    background:rgba(3,20,31,.28);
    pointer-events:none;
  }
  .owner-sidebar .owner-menu__summary{
    padding-right:18px;
  }
  .owner-sidebar .owner-menu__links{
    grid-template-columns:1fr!important;
    max-height:calc(100dvh - 150px)!important;
    overflow:auto!important;
    padding-right:2px;
  }
  .owner-sidebar .owner-menu__links a{
    min-height:46px;
    white-space:normal;
  }
  body.owner-sidebar-collapsed .owner-sidebar__edge-toggle{
    left:0;
  }
}
@media(max-width:560px){
  :root{
    --owner-sidebar-width:min(88vw,300px);
    --owner-sidebar-gap:8px;
  }
  .owner-sidebar{
    padding:16px!important;
    border-radius:22px;
  }
  .owner-sidebar__edge-toggle{
    top:70px;
    left:calc(var(--owner-sidebar-width) - 16px);
    width:38px;
    height:58px;
  }
  body.owner-sidebar-collapsed .owner-sidebar__edge-toggle{
    left:0;
  }
}
@media print{
  .app-shell:has(.owner-sidebar),
  .app-shell.owner-shell-fixed{
    padding-left:0!important;
  }
  .owner-sidebar__edge-toggle{display:none!important}
}

/* Final fixed sidebar drawer system - owner/staff/superadmin */
:root{
  --fixed-sidebar-width:288px;
  --fixed-sidebar-top:82px;
  --fixed-sidebar-gap:16px;
}
body.has-fixed-sidebar{
  overflow-x:hidden!important;
}
.app-shell.fixed-sidebar-shell{
  display:block!important;
  min-height:calc(100dvh - var(--fixed-sidebar-top));
  padding-left:var(--fixed-sidebar-width)!important;
  transition:padding-left .26s ease;
}
.app-shell.fixed-sidebar-shell>.content{
  width:100%;
  min-width:0;
}
.sidebar[data-fixed-sidebar],
.owner-sidebar[data-fixed-sidebar],
.admin-sidebar[data-fixed-sidebar]{
  position:fixed!important;
  inset:auto auto var(--fixed-sidebar-gap) var(--fixed-sidebar-gap)!important;
  top:var(--fixed-sidebar-top)!important;
  width:calc(var(--fixed-sidebar-width) - (var(--fixed-sidebar-gap) * 2))!important;
  height:auto!important;
  max-height:none!important;
  display:block!important;
  padding:22px!important;
  border-radius:28px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  color:#f6fdff!important;
  background:
    radial-gradient(circle at 30% 0%,rgba(0,180,216,.24),transparent 34%),
    linear-gradient(180deg,#102b3f 0%,#0b2132 100%)!important;
  box-shadow:0 26px 70px rgba(3,20,31,.28)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  z-index:120!important;
  scrollbar-width:thin;
  transition:transform .26s ease, box-shadow .26s ease;
  will-change:transform;
}
.sidebar[data-fixed-sidebar]::-webkit-scrollbar{width:8px}
.sidebar[data-fixed-sidebar]::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:999px}
.sidebar[data-fixed-sidebar] .sidebar-title,
.sidebar[data-fixed-sidebar] .owner-menu__summary{
  position:relative;
  margin:0 0 18px!important;
  padding:4px 46px 14px 0!important;
  border-bottom:1px solid rgba(255,255,255,.12);
  color:#bdeeff!important;
  letter-spacing:.13em;
}
.sidebar[data-fixed-sidebar] .sidebar-title::after,
.sidebar[data-fixed-sidebar] .owner-menu__summary::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-1px;
  width:62px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#00b4d8,#90e0ef);
}
.sidebar[data-fixed-sidebar] .sidebar-title small,
.sidebar[data-fixed-sidebar] .owner-menu__summary small{
  display:block;
  margin-top:5px;
  color:#84bfd2!important;
  letter-spacing:0;
  text-transform:none;
}
.sidebar[data-fixed-sidebar] .owner-menu__toggle{display:none!important}
.sidebar[data-fixed-sidebar] .owner-menu,
.sidebar[data-fixed-sidebar] .owner-menu__links,
.sidebar[data-fixed-sidebar] .fixed-sidebar-links{
  display:grid!important;
  gap:8px!important;
  min-height:0!important;
}
.sidebar[data-fixed-sidebar] a,
.sidebar[data-fixed-sidebar] .owner-menu__links a,
.sidebar[data-fixed-sidebar] .fixed-sidebar-links a{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  margin:0!important;
  padding:12px 14px!important;
  border-radius:17px!important;
  color:#eefbff!important;
  font-size:14px;
  font-weight:850;
  line-height:1.25;
  background:rgba(255,255,255,.055);
  border:1px solid transparent;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.sidebar[data-fixed-sidebar] a:hover,
.sidebar[data-fixed-sidebar] a:focus-visible{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.14);
  transform:translateX(3px);
  outline:none;
}
.sidebar[data-fixed-sidebar] a.active{
  background:linear-gradient(135deg,rgba(0,180,216,.32),rgba(255,255,255,.10))!important;
  border-color:rgba(144,224,239,.35)!important;
  box-shadow:inset 4px 0 0 #48cae4,0 12px 24px rgba(2,20,31,.14)!important;
}
.sidebar[data-fixed-sidebar] .nav-badge{
  min-width:26px;
  height:24px;
  display:inline-grid;
  place-items:center;
  padding:0 8px;
  border-radius:999px;
  background:#ffb703;
  color:#1d2a32;
  font-size:12px;
  font-weight:950;
}
.sidebar[data-fixed-sidebar] .owner-menu__logout,
.sidebar[data-fixed-sidebar] a[href$="logout.php"]{
  margin-top:10px!important;
  background:rgba(214,40,40,.16)!important;
  border-color:rgba(255,255,255,.12)!important;
}
.fixed-sidebar-edge-toggle{
  position:fixed!important;
  top:calc(var(--fixed-sidebar-top) + 24px)!important;
  left:calc(var(--fixed-sidebar-width) - 30px)!important;
  z-index:132!important;
  width:42px!important;
  height:62px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:0!important;
  border-radius:0 999px 999px 0!important;
  background:linear-gradient(135deg,#00b4d8,#0077b6)!important;
  color:#fff!important;
  font-size:25px!important;
  font-weight:950!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 16px 36px rgba(0,119,182,.34)!important;
  transition:left .26s ease, transform .18s ease, box-shadow .18s ease, filter .18s ease!important;
}
.fixed-sidebar-edge-toggle:hover,
.fixed-sidebar-edge-toggle:focus-visible{
  filter:brightness(1.06);
  transform:translateX(2px);
  box-shadow:0 20px 44px rgba(0,119,182,.44)!important;
  outline:none!important;
}
.fixed-sidebar-edge-toggle [data-fixed-sidebar-icon]{
  display:block;
  transform:translateX(-1px);
}
.fixed-sidebar-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:110;
  background:rgba(3,20,31,.42);
  backdrop-filter:blur(2px);
}
body.fixed-sidebar-collapsed .app-shell.fixed-sidebar-shell{
  padding-left:0!important;
}
body.fixed-sidebar-collapsed .sidebar[data-fixed-sidebar]{
  transform:translateX(calc(-100% - var(--fixed-sidebar-gap) - 10px))!important;
}
body.fixed-sidebar-collapsed .fixed-sidebar-edge-toggle{
  left:0!important;
}
body.fixed-sidebar-collapsed .fixed-sidebar-edge-toggle [data-fixed-sidebar-icon]{
  transform:translateX(1px);
}
body.fixed-sidebar-collapsed .owner-sidebar__edge-toggle{left:0!important}
@media(max-width:980px){
  :root{
    --fixed-sidebar-width:min(88vw,330px);
    --fixed-sidebar-top:0px;
    --fixed-sidebar-gap:10px;
  }
  .app-shell.fixed-sidebar-shell,
  body.fixed-sidebar-collapsed .app-shell.fixed-sidebar-shell{
    padding-left:0!important;
  }
  .sidebar[data-fixed-sidebar],
  .owner-sidebar[data-fixed-sidebar],
  .admin-sidebar[data-fixed-sidebar]{
    top:var(--fixed-sidebar-gap)!important;
    bottom:var(--fixed-sidebar-gap)!important;
    left:var(--fixed-sidebar-gap)!important;
    width:calc(var(--fixed-sidebar-width) - (var(--fixed-sidebar-gap) * 2))!important;
    padding:18px!important;
    border-radius:24px!important;
    box-shadow:0 28px 75px rgba(3,20,31,.38)!important;
  }
  .fixed-sidebar-edge-toggle{
    top:78px!important;
    left:calc(var(--fixed-sidebar-width) - 18px)!important;
    width:40px!important;
    height:62px!important;
  }
  body.fixed-sidebar-open .fixed-sidebar-overlay{
    display:block;
  }
  body.fixed-sidebar-collapsed .fixed-sidebar-overlay{
    display:none;
  }
  body.fixed-sidebar-collapsed .fixed-sidebar-edge-toggle{
    left:0!important;
  }
  .sidebar[data-fixed-sidebar] .owner-menu__links,
  .sidebar[data-fixed-sidebar] .fixed-sidebar-links{
    grid-template-columns:1fr!important;
    max-height:calc(100dvh - 150px)!important;
    overflow-y:auto!important;
    padding-right:2px;
  }
  .sidebar[data-fixed-sidebar] a{
    min-height:46px;
    white-space:normal!important;
  }
}
@media(max-width:560px){
  :root{
    --fixed-sidebar-width:min(90vw,304px);
    --fixed-sidebar-gap:8px;
  }
  .sidebar[data-fixed-sidebar],
  .owner-sidebar[data-fixed-sidebar],
  .admin-sidebar[data-fixed-sidebar]{
    padding:16px!important;
    border-radius:22px!important;
  }
  .fixed-sidebar-edge-toggle{
    top:70px!important;
    left:calc(var(--fixed-sidebar-width) - 16px)!important;
    width:38px!important;
    height:58px!important;
  }
  body.fixed-sidebar-collapsed .fixed-sidebar-edge-toggle{
    left:0!important;
  }
}
@media print{
  .app-shell.fixed-sidebar-shell{padding-left:0!important}
  .sidebar[data-fixed-sidebar],.fixed-sidebar-edge-toggle,.fixed-sidebar-overlay{display:none!important}
}


/* Brand-aligned sidebar drawer toggle */
.topbar{
  z-index:160;
}
.topbar-brandline{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.topbar-brandline .brand{
  width:auto;
  min-width:0;
  flex:0 1 auto;
}
.sidebar-brand-toggle{
  flex:0 0 auto;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 14px 30px rgba(0,119,182,.24);
  font:900 25px/1 Inter,system-ui,Segoe UI,Arial,sans-serif;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.sidebar-brand-toggle:hover,
.sidebar-brand-toggle:focus-visible{
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(0,119,182,.34);
  outline:none;
}
.sidebar-brand-toggle__icon{
  display:block;
  min-width:1em;
  text-align:center;
  transform:translateY(-1px);
}
body.fixed-sidebar-open .sidebar-brand-toggle{
  background:linear-gradient(135deg,#102b3f,#0077b6);
}

@media(max-width:980px){
  .topbar{
    position:sticky;
    top:0;
    z-index:160;
  }
  .topbar-brandline{
    width:100%;
  }
  .topbar-brandline .brand{
    flex:1 1 auto;
  }
  .sidebar-brand-toggle{
    width:43px;
    height:43px;
    border-radius:14px;
    font-size:23px;
  }
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .owner-sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .admin-sidebar[data-fixed-sidebar]{
    top:calc(var(--fixed-sidebar-top) + var(--fixed-sidebar-gap))!important;
    max-height:calc(100dvh - var(--fixed-sidebar-top) - (var(--fixed-sidebar-gap) * 2))!important;
  }
  body.fixed-sidebar-open .fixed-sidebar-overlay{
    top:var(--fixed-sidebar-top);
  }
}

@media(max-width:620px){
  .topbar-brandline .brand{
    gap:9px;
  }
  .sidebar-brand-toggle{
    width:42px;
    height:42px;
  }
}


/* Final sidebar spacing fix: keeps the first and last sidebar actions fully reachable. */
body.has-fixed-sidebar{
  --fixed-sidebar-width:288px;
  --fixed-sidebar-gap:14px;
  --fixed-sidebar-bottom-gap:14px;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar],
body.has-fixed-sidebar .owner-sidebar[data-fixed-sidebar],
body.has-fixed-sidebar .admin-sidebar[data-fixed-sidebar]{
  top:var(--fixed-sidebar-top,94px)!important;
  bottom:var(--fixed-sidebar-bottom-gap)!important;
  height:auto!important;
  max-height:calc(100dvh - var(--fixed-sidebar-top,94px) - var(--fixed-sidebar-bottom-gap))!important;
  padding:14px 14px max(14px, env(safe-area-inset-bottom))!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__summary{
  display:none!important;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .sidebar-title{
  flex:0 0 auto!important;
  margin:0 0 10px!important;
  padding:2px 0 10px!important;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__links,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .fixed-sidebar-links{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
  padding:2px 4px max(10px, env(safe-area-inset-bottom)) 0!important;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__links::-webkit-scrollbar,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .fixed-sidebar-links::-webkit-scrollbar{width:7px}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__links::-webkit-scrollbar-thumb,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .fixed-sidebar-links::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:999px}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] a,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__links a,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .fixed-sidebar-links a{
  min-height:38px!important;
  padding:9px 12px!important;
  border-radius:14px!important;
  font-size:13.5px!important;
  line-height:1.18!important;
}
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__logout,
body.has-fixed-sidebar .sidebar[data-fixed-sidebar] a[href$="logout.php"]{
  margin-top:4px!important;
}
body.has-fixed-sidebar.fixed-sidebar-collapsed .sidebar[data-fixed-sidebar]{
  transform:translateX(calc(-100% - var(--fixed-sidebar-gap) - 12px))!important;
}
body.has-fixed-sidebar .fixed-sidebar-overlay{
  top:0!important;
}
@media(max-width:980px){
  body.has-fixed-sidebar{
    --fixed-sidebar-width:min(88vw,330px);
    --fixed-sidebar-gap:10px;
    --fixed-sidebar-bottom-gap:10px;
  }
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .owner-sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .admin-sidebar[data-fixed-sidebar]{
    top:var(--fixed-sidebar-top,88px)!important;
    bottom:var(--fixed-sidebar-bottom-gap)!important;
    width:calc(var(--fixed-sidebar-width) - (var(--fixed-sidebar-gap) * 2))!important;
    max-height:calc(100dvh - var(--fixed-sidebar-top,88px) - var(--fixed-sidebar-bottom-gap))!important;
    padding:12px 12px max(12px, env(safe-area-inset-bottom))!important;
    border-radius:22px!important;
  }
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar] a,
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .owner-menu__links a,
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar] .fixed-sidebar-links a{
    min-height:40px!important;
    padding:9px 12px!important;
    font-size:13px!important;
    white-space:normal!important;
  }
  body.has-fixed-sidebar .fixed-sidebar-overlay{
    top:var(--fixed-sidebar-top,88px)!important;
  }
}
@media(max-width:560px){
  body.has-fixed-sidebar{
    --fixed-sidebar-width:min(90vw,304px);
    --fixed-sidebar-gap:8px;
    --fixed-sidebar-bottom-gap:8px;
  }
  body.has-fixed-sidebar .sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .owner-sidebar[data-fixed-sidebar],
  body.has-fixed-sidebar .admin-sidebar[data-fixed-sidebar]{
    padding:10px 10px max(10px, env(safe-area-inset-bottom))!important;
    border-radius:20px!important;
  }
}


/* Owner-visible website commission tracking */
.stat small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.commission-summary{
  margin-top:-6px;
}
.commission-ledger-card{
  margin-top:18px;
}
.commission-ledger-card .ledger-card__title p{
  margin:6px 0 0;
  max-width:760px;
}
.commission-ledger-table{
  min-width:1120px;
}
@media(max-width:700px){
  .commission-summary{margin-top:12px}
}

/* Stat card layout fix: keep label, amount, and helper text from overlapping */
.stat{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-content:center;
  align-items:start;
  justify-content:stretch!important;
  gap:8px;
  min-height:86px;
  overflow:hidden;
}
.stat span{
  display:block;
  max-width:100%;
  min-width:0;
  color:var(--ink);
  font-size:clamp(14px,1.5vw,16px);
  font-weight:700;
  line-height:1.22;
  overflow-wrap:break-word;
}
.stat strong{
  display:block;
  max-width:100%;
  min-width:0;
  font-size:clamp(28px,3vw,38px);
  line-height:.98;
  letter-spacing:-.045em;
  white-space:normal;
  overflow-wrap:anywhere;
}
.stat small{
  margin-top:0;
  max-width:100%;
  min-width:0;
  line-height:1.25;
  overflow-wrap:break-word;
}
.ledger-summary .stat,
.commission-summary .stat{
  min-height:108px;
  padding:22px 24px;
}
.ledger-summary.grid-4,
.commission-summary.grid-3{
  align-items:stretch;
}
.ledger-summary.grid-4 .stat,
.commission-summary.grid-3 .stat{
  height:100%;
}
@media(max-width:1200px){
  .ledger-summary.grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  .ledger-summary.grid-4,
  .commission-summary.grid-3{
    grid-template-columns:1fr;
  }
  .ledger-summary .stat,
  .commission-summary .stat{
    min-height:96px;
  }
}

/* Professional income ledger print layout */
.ledger-print-only{
  display:none!important;
}
.ledger-period-panel{
  display:grid;
  gap:4px;
  min-width:220px;
  padding:14px 16px;
  border:1px solid rgba(14,165,233,.16);
  border-radius:16px;
  background:#f8fcff;
  color:var(--muted);
}
.ledger-period-panel strong{
  color:#102b3f;
}
.ledger-period-panel span{
  color:#0f2537;
  font-weight:900;
  line-height:1.25;
}
.ledger-period-panel small{
  font-weight:700;
}
@media(max-width:900px){
  .ledger-header{
    flex-direction:column;
    align-items:stretch;
  }
  .ledger-period-panel,
  .ledger-generated{
    text-align:left;
  }
}
@media print{
  @page{
    size:A4 landscape;
    margin:10mm;
  }
  *{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  html,
  body{
    width:auto!important;
    min-width:0!important;
    background:#fff!important;
    color:#111827!important;
    font-family:Arial, Helvetica, sans-serif!important;
    font-size:10.5px!important;
    line-height:1.32!important;
  }
  .topbar,
  .footer,
  .sidebar,
  .owner-sidebar,
  .admin-sidebar,
  .fixed-sidebar-edge-toggle,
  .fixed-sidebar-overlay,
  .sidebar-brand-toggle,
  .ledger-print-hide,
  .nav,
  .btn,
  .platform-percent-form,
  .actions{
    display:none!important;
  }
  .ledger-print-only{
    display:block!important;
  }
  body.has-fixed-sidebar .app-shell.fixed-sidebar-shell,
  .app-shell.fixed-sidebar-shell,
  .app-shell{
    display:block!important;
    padding-left:0!important;
    margin:0!important;
    min-height:0!important;
  }
  .content,
  .income-ledger-page{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  .card{
    box-shadow:none!important;
    background:#fff!important;
    border:0!important;
    border-radius:0!important;
  }
  .ledger-print-report-header{
    padding:0 0 8px!important;
    margin:0 0 10px!important;
    border-bottom:2px solid #102b3f!important;
    page-break-inside:avoid;
  }
  .ledger-print-company{
    display:block!important;
    text-align:center!important;
    margin-bottom:8px!important;
  }
  .ledger-print-company span{
    display:block!important;
    color:#4b6472!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.18em!important;
  }
  .ledger-print-company h1{
    margin:3px 0!important;
    color:#102b3f!important;
    font-size:22px!important;
    line-height:1!important;
    text-transform:uppercase!important;
    letter-spacing:.03em!important;
  }
  .ledger-print-company p{
    margin:0!important;
    color:#334155!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  .ledger-print-meta{
    display:grid!important;
    grid-template-columns:1.6fr 1fr 1fr 1.1fr 1.2fr!important;
    border:1px solid #102b3f!important;
    border-right:0!important;
  }
  .ledger-print-meta>div{
    padding:6px 8px!important;
    border-right:1px solid #102b3f!important;
    min-height:34px!important;
  }
  .ledger-print-meta span{
    display:block!important;
    color:#64748b!important;
    font-size:8.5px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.08em!important;
  }
  .ledger-print-meta strong{
    display:block!important;
    color:#111827!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    margin-top:2px!important;
  }
  .income-ledger-page .ledger-header{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:10px!important;
    padding:0 0 8px!important;
    margin:0 0 8px!important;
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid #cbd5e1!important;
  }
  .income-ledger-page .ledger-header .eyebrow{
    color:#475569!important;
    font-size:8.5px!important;
    letter-spacing:.1em!important;
  }
  .income-ledger-page .ledger-header h3{
    margin:2px 0!important;
    color:#102b3f!important;
    font-size:15px!important;
  }
  .income-ledger-page .ledger-header p{
    margin:0!important;
    color:#475569!important;
    font-size:9.5px!important;
  }
  .ledger-period-panel,
  .ledger-generated{
    min-width:0!important;
    text-align:left!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    gap:1px!important;
    font-size:9.5px!important;
  }
  .ledger-period-panel strong,
  .ledger-generated strong{
    color:#475569!important;
    font-size:8.5px!important;
    text-transform:uppercase!important;
    letter-spacing:.07em!important;
  }
  .ledger-period-panel span,
  .ledger-generated span{
    color:#111827!important;
    font-weight:900!important;
    font-size:10px!important;
  }
  .ledger-period-panel small,
  .ledger-generated small{
    color:#475569!important;
    font-size:8.5px!important;
    font-weight:700!important;
  }
  .ledger-summary,
  .commission-summary{
    display:grid!important;
    gap:5px!important;
    margin:7px 0!important;
    page-break-inside:avoid!important;
  }
  .ledger-summary.grid-4{
    grid-template-columns:repeat(4,1fr)!important;
  }
  .commission-summary.grid-3{
    grid-template-columns:repeat(3,1fr)!important;
  }
  .ledger-summary .stat,
  .commission-summary .stat,
  .stat{
    min-height:0!important;
    height:auto!important;
    padding:7px 8px!important;
    display:grid!important;
    gap:2px!important;
    border:1px solid #94a3b8!important;
    background:#fff!important;
    break-inside:avoid!important;
  }
  .stat span{
    color:#475569!important;
    font-size:8.5px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.05em!important;
    line-height:1.15!important;
  }
  .stat strong{
    color:#102b3f!important;
    font-size:15px!important;
    line-height:1.1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  .stat small{
    color:#64748b!important;
    font-size:8px!important;
    line-height:1.1!important;
    font-weight:700!important;
  }
  .ledger-print-section-label{
    margin:10px 0 4px!important;
    padding:5px 8px!important;
    background:#102b3f!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.07em!important;
    page-break-after:avoid!important;
  }
  .ledger-card,
  .commission-ledger-card{
    margin:0 0 8px!important;
    padding:0!important;
    break-inside:auto!important;
  }
  .ledger-card__title{
    display:flex!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:flex-end!important;
    gap:8px!important;
    margin:0 0 4px!important;
    padding:0!important;
    page-break-after:avoid!important;
  }
  .ledger-card__title h3{
    color:#111827!important;
    font-size:12px!important;
    margin:0!important;
  }
  .ledger-card__title span,
  .ledger-card__title p,
  .muted{
    color:#475569!important;
    font-size:8.5px!important;
    line-height:1.2!important;
  }
  .table-wrap,
  .ledger-table-wrap{
    width:100%!important;
    overflow:visible!important;
  }
  table,
  .ledger-table,
  .commission-ledger-table{
    width:100%!important;
    min-width:0!important;
    border-collapse:collapse!important;
    table-layout:fixed!important;
    font-size:8.7px!important;
  }
  .commission-ledger-table{
    font-size:8px!important;
  }
  thead{
    display:table-header-group!important;
  }
  tfoot{
    display:table-row-group!important;
  }
  tr{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
  .ledger-table th,
  .ledger-table td{
    border:1px solid #94a3b8!important;
    padding:4px 5px!important;
    vertical-align:top!important;
    color:#111827!important;
    background:#fff!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }
  .ledger-table thead th{
    background:#eaf3f8!important;
    color:#102b3f!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
    font-size:7.8px!important;
  }
  .ledger-table tfoot th{
    background:#102b3f!important;
    color:#fff!important;
    font-size:9px!important;
    font-weight:900!important;
    border-color:#102b3f!important;
  }
  .amount-col{
    text-align:right!important;
    white-space:nowrap!important;
  }
  .ledger-table .empty{
    text-align:center!important;
    color:#64748b!important;
    font-style:italic!important;
  }
  .ledger-table .badge{
    display:inline-block!important;
    padding:1px 4px!important;
    border:1px solid #64748b!important;
    border-radius:2px!important;
    background:#fff!important;
    color:#111827!important;
    font-size:7.5px!important;
    line-height:1.1!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:0!important;
  }
  .ledger-table small{
    color:#475569!important;
    font-size:7.2px!important;
    line-height:1.15!important;
  }
  .ledger-print-signatures{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:18px!important;
    margin-top:18px!important;
    page-break-inside:avoid!important;
  }
  .ledger-print-signatures>div{
    border-top:1px solid #111827!important;
    padding-top:5px!important;
    min-height:34px!important;
    text-align:center!important;
  }
  .ledger-print-signatures span{
    display:block!important;
    color:#475569!important;
    font-size:8px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.08em!important;
  }
  .ledger-print-signatures strong{
    display:block!important;
    margin-top:3px!important;
    color:#111827!important;
    font-size:10px!important;
  }
}
