/* Villa 777 PMS premium Calendar & Bookings */
body.route-pms #tab-calendar{display:block;min-width:0}
body.route-pms #tab-calendar>.cal-premium{margin:0 0 18px}
body.route-pms .cal-original-toolbar{display:none!important}
body.route-pms .cal-premium{--cal-bg:#081b20;--cal-panel:#0c262d;--cal-edge:#1e4148;--cal-muted:#a7c0ba;--cal-green:#29c888;--cal-gold:#edbd61;color:#edf7f3}
body.route-pms .cal-hero{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:end;gap:20px;min-height:144px;margin:0 0 13px;padding:23px 25px;overflow:hidden;border:1px solid #1d4848;border-radius:16px;background:linear-gradient(90deg,#092b2e 0%,#0a272cde 53%,#09252a70 100%),url('/assets/night-exterior.webp') center 48%/cover}
body.route-pms .cal-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#00131655,transparent)}
body.route-pms .cal-eyebrow{font-size:9px;font-weight:850;letter-spacing:.18em;color:var(--cal-gold)}
body.route-pms .cal-hero h2{margin:6px 0;color:#f5f8f6;font:650 clamp(26px,3vw,35px)/1.1 Inter,system-ui,sans-serif;letter-spacing:-.025em}
body.route-pms .cal-hero p{margin:0;color:#c4d7d2;font-size:12px}
body.route-pms .cal-hero-actions{display:flex;flex-wrap:wrap;gap:8px}
body.route-pms .cal-hero-actions button,body.route-pms .cal-toolbar>button{min-height:42px;padding:10px 14px;border-radius:10px;font-size:11px;font-weight:750}
body.route-pms .cal-secondary{background:#102e34!important;border:1px solid #456167!important;color:#eef6f3!important}
body.route-pms .cal-gold{background:linear-gradient(120deg,#dfad4c,#efc973)!important;border:1px solid #e9be67!important;color:#18241f!important}
body.route-pms .cal-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px;padding:11px;background:#0b252b;border:1px solid var(--cal-edge);border-radius:13px}
body.route-pms .cal-period{display:flex;align-items:center;gap:6px;margin-right:auto}
body.route-pms .cal-period button{min-width:37px;min-height:38px;border:1px solid #294c52;border-radius:9px;background:#102f35;color:#e9f5f0;font-weight:700}
body.route-pms .cal-period #calToday{min-width:58px;font-size:10px}
body.route-pms .cal-period strong{min-width:130px;text-align:center;color:#f3f7f5;font-size:15px}
body.route-pms .cal-filter{display:flex;align-items:center;gap:8px;margin:0;padding:0;color:#a9c0ba;font-size:10px;white-space:nowrap}
body.route-pms .cal-filter select{width:auto;min-width:130px;max-width:190px;min-height:38px;padding:7px 28px 7px 10px;background:#091f24;border-color:#294a50;color:#e8f2ef;font-size:11px}
body.route-pms .cal-search{display:flex;align-items:center;gap:6px;min-width:170px;max-width:235px;height:38px;padding:0 10px;border:1px solid #294a50;border-radius:9px;background:#091f24;color:#a8c1ba;font-size:20px}
body.route-pms .cal-search input{width:100%;padding:5px 0;border:0;background:transparent;color:#eff8f4;font-size:11px;outline:0}
body.route-pms .cal-search input:focus{outline:0}
body.route-pms .cal-views{display:flex;gap:2px;padding:3px;border:1px solid #24484e;border-radius:10px;background:#071d22}
body.route-pms .cal-views button{min-height:31px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:#a6bdb7;font-size:10px}
body.route-pms .cal-views button:hover{background:#15353a;color:white}body.route-pms .cal-views button.active{background:#0b805e;color:#fff;box-shadow:0 2px 8px #0003}
body.route-pms .cal-primary{white-space:nowrap}
body.route-pms .cal-kpis{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:9px;margin:0 0 11px}
body.route-pms .cal-kpi{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 8px;min-height:79px;padding:12px 14px;border:1px solid #24474c;border-radius:12px;background:linear-gradient(145deg,#103039,#0b242a);box-shadow:0 8px 20px #00111535}
body.route-pms .cal-kpi span{color:#aac2bc;font-size:10px}
body.route-pms .cal-kpi b{grid-column:1;color:#f6f8f7;font-size:23px;line-height:1.15}
body.route-pms .cal-kpi small{grid-column:1/-1;color:#91aaa4;font-size:9px}
body.route-pms .cal-kpi:after{grid-column:2;grid-row:1/3;content:"";width:7px;height:38px;border-radius:9px;background:#16845e}
body.route-pms .cal-kpi.green{background:linear-gradient(145deg,#0a382e,#0b2728);border-color:#195844}
body.route-pms .cal-kpi.green:after{background:#39d294}
body.route-pms .cal-kpi.gold{background:linear-gradient(145deg,#3a2e18,#25261f);border-color:#5a4a2b}
body.route-pms .cal-kpi.gold:after{background:#edbd61}
body.route-pms .cal-kpi.red{background:linear-gradient(145deg,#321e24,#211d24);border-color:#51313a}
body.route-pms .cal-kpi.red:after{background:#ef6572}
body.route-pms .cal-kpi.violet:after{background:#ae82ef}
body.route-pms .cal-legend{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:0 0 10px;padding:10px 13px;border:1px solid #1d4147;border-radius:11px;background:#0a2227;color:#b5c9c4;font-size:10px}
body.route-pms .cal-legend span{display:flex;align-items:center;gap:6px}
body.route-pms .cal-dot{display:inline-block;width:9px;height:9px;border-radius:3px;background:#2bc987}
body.route-pms .cal-dot.pending{background:#efbd56}
body.route-pms .cal-dot.inhouse{background:#55b9f0}
body.route-pms .cal-dot.checkout{background:#8395a5}
body.route-pms .cal-dot.closed{background:#e26d78}
body.route-pms .cal-dot.available{background:#2a634f}
body.route-pms #calendarGrid{max-width:100%;min-width:0;overflow:hidden;border:1px solid #21454b;border-radius:13px;background:#091f24;color:#edf6f2}
body.route-pms .cal-timeline-scroll{width:100%;overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-color:#41646a #0a2227}
body.route-pms .cal-timeline{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:10px}
body.route-pms .cal-timeline th,body.route-pms .cal-timeline td{height:49px;min-width:48px;padding:4px 3px;text-align:center;border-right:1px solid #183a40;border-bottom:1px solid #183a40;white-space:nowrap}
body.route-pms .cal-timeline thead th{position:sticky;top:0;z-index:3;height:50px;background:#102d33;color:#c5d7d2}
body.route-pms .cal-timeline thead th small{display:block;color:#90aaa4;font-size:8px;font-weight:500}
body.route-pms .cal-timeline thead th b{display:block;margin:2px 0;color:#f0f6f3;font-size:12px}
body.route-pms .cal-timeline thead th.is-today{background:#17493c;box-shadow:inset 0 3px #d7ad57}
body.route-pms .cal-room-head{position:sticky!important;left:0;z-index:4!important;min-width:205px!important;width:205px;background:#0c272d!important;text-align:left!important;color:#c0d2cd!important}
body.route-pms .cal-timeline thead .cal-room-head{z-index:6!important}
body.route-pms .cal-room-row .cal-room-head{height:58px;padding:5px 9px}
body.route-pms .cal-room-row .cal-room-head img{float:left;width:47px;height:45px;margin-right:8px;border-radius:7px;object-fit:cover;background:#1a393d}
body.route-pms .cal-room-row .cal-room-head b{display:block;margin-top:5px;color:#f0f6f3;font-size:10px}
body.route-pms .cal-room-row .cal-room-head small{display:block;color:#8fa9a2;font-size:8px}
body.route-pms .cal-room-row .cal-room-head button{float:right;min-height:25px;margin-top:-1px;padding:3px 7px;border:1px solid #31534f;border-radius:6px;background:#12362f;color:#b8ead1;font-size:8px}
body.route-pms .cal-event-cell{padding:3px!important;background:#0b2126}
body.route-pms .cal-booking-bar{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;width:100%;height:42px;padding:5px 9px;overflow:hidden;border:1px solid #1f9867!important;border-radius:7px;background:linear-gradient(105deg,#155d47,#12704f)!important;color:#ecfff5!important;text-align:left;white-space:nowrap}
body.route-pms .cal-booking-bar b{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px}
body.route-pms .cal-booking-bar span{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#c4edda;font-size:8px}
body.route-pms .cal-booking-bar.inhouse{border-color:#2875a6!important;background:linear-gradient(105deg,#17496a,#1c6591)!important}
body.route-pms .cal-booking-bar.closed{border-color:#874651!important;background:linear-gradient(105deg,#5e3139,#673943)!important;color:#ffeff0!important}
body.route-pms .cal-open-cell{padding:0!important;background:#102a2b}
body.route-pms .cal-open-cell button,body.route-pms .cal-price-cell button{display:grid;place-items:center;width:100%;height:100%;min-height:47px;padding:3px;border:0;border-radius:0;background:#0e2929;color:#86c6a7;font-size:8px}
body.route-pms .cal-open-cell button:hover{background:#124539}
body.route-pms .cal-open-badge{padding:4px 7px;border:1px solid #236b50;border-radius:20px;background:#113c30;color:#a4eac6;font-size:8px}
body.route-pms .cal-price-row .cal-room-head{height:34px;color:#9fb8b1;font-size:9px}
body.route-pms .cal-price-row .cal-room-head small{color:#819c95}
body.route-pms .cal-price-cell{height:34px!important;padding:0!important;background:#0e2429}
body.route-pms .cal-price-cell button{min-height:33px;background:#10292e;color:#c5d6d1;font-weight:650}
body.route-pms .cal-price-cell button:hover{background:#274b3c;color:#fff}
body.route-pms .cal-note{margin:0;padding:10px 13px;border-top:1px solid #204047;background:#0b252a;color:#9eb6b0;font-size:10px}
body.route-pms .cal-booking-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 9px}
body.route-pms .cal-booking-tools h3{margin:0;color:#eff6f3;font-size:16px}
body.route-pms #calBookingCount{color:#9fb8b1;font-size:10px}
body.route-pms #tab-calendar .pending-count>.tablewrap{border-color:#204047;background:#091f24}
body.route-pms #tab-calendar #bookingRows tr[hidden]{display:none}
body.route-pms #tab-calendar #bookingRows td{color:#dce9e4}
body.route-pms .cal-booking-detail{margin:12px 0;padding:16px 18px;border:1px solid #256052;border-radius:14px;background:linear-gradient(130deg,#0c302b,#0b252a);box-shadow:0 10px 24px #0003}
body.route-pms .cal-detail-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
body.route-pms .cal-detail-top h3{margin:5px 0 2px;color:#f4f8f6;font-size:18px}
body.route-pms .cal-detail-top p{margin:0;color:#a7c1b8;font-size:10px}
body.route-pms .cal-close-detail{width:34px;height:34px;padding:0;border:1px solid #345853;border-radius:8px;background:#102f2c;color:#e9f4f0;font-size:20px}
body.route-pms .cal-detail-facts{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0}
body.route-pms .cal-detail-facts span{display:grid;gap:3px;min-width:100px;padding:9px 11px;border:1px solid #244941;border-radius:8px;background:#0a2527}
body.route-pms .cal-detail-facts small{color:#9cb6ae;font-size:9px}
body.route-pms .cal-detail-facts b{color:#f2f8f5;font-size:11px}
body.route-pms .cal-detail-actions{display:flex;flex-wrap:wrap;gap:7px}
body.route-pms .cal-detail-actions button{min-height:36px;padding:8px 10px;border:1px solid #286b53;border-radius:8px;background:#0c7957;color:white;font-size:10px}
body.route-pms .cal-feedback{min-height:0;color:#f0c976;font-size:11px}
body.route-pms .cal-empty{padding:24px;color:#b7cac5;text-align:center}
@media(max-width:1100px){
 body.route-pms .cal-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.route-pms .cal-toolbar{align-items:stretch}
 body.route-pms .cal-period{flex:1 1 100%}
 body.route-pms .cal-filter{flex:1}
 body.route-pms .cal-filter select{width:100%;max-width:none}
 body.route-pms .cal-search{flex:2 1 220px;max-width:none}
}
@media(max-width:720px){
 body.route-pms .cal-hero{align-items:flex-start;flex-direction:column;min-height:180px;padding:18px}
 body.route-pms .cal-hero-actions{width:100%}
 body.route-pms .cal-hero-actions button{flex:1}
 body.route-pms .cal-toolbar{gap:7px;padding:9px}
 body.route-pms .cal-period{justify-content:space-between;flex:1 1 100%}
 body.route-pms .cal-period strong{flex:1}
 body.route-pms .cal-filter{flex:1 1 calc(50% - 8px);display:grid;gap:4px}
 body.route-pms .cal-search{flex:1 1 100%;max-width:none}
 body.route-pms .cal-views{flex:1;justify-content:center}
 body.route-pms .cal-views button{flex:1}
 body.route-pms .cal-primary{flex:1}
 body.route-pms .cal-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.route-pms .cal-kpi{min-height:72px;padding:10px}
 body.route-pms .cal-kpi b{font-size:20px}
 body.route-pms .cal-legend{gap:8px 12px}
 body.route-pms .cal-booking-tools{align-items:flex-start;flex-direction:column}
 body.route-pms .cal-timeline th,body.route-pms .cal-timeline td{min-width:44px}
 body.route-pms .cal-room-head{min-width:160px!important;width:160px}
 body.route-pms .cal-room-row .cal-room-head img{width:38px;height:40px}
 body.route-pms .cal-room-row .cal-room-head button{float:none;display:block;margin-top:2px}
}
@media(prefers-reduced-motion:reduce){body.route-pms .cal-premium *,body.route-pms .cal-premium *:before,body.route-pms .cal-premium *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
