/* Club Red UI Evolution v1 — Classic Evolved | Batch 1 + Batch 2 */
:root{
  --cr-bg:#f3f6f9;--cr-surface:#fff;--cr-surface-2:#f7f9fc;--cr-surface-3:#eef3f8;
  --cr-text:#172033;--cr-muted:#66758a;--cr-border:#d7e0e9;--cr-border-strong:#bcc9d6;
  --cr-primary:#143a5d;--cr-primary-hover:#0f3150;--cr-accent:#1689bd;--cr-accent-soft:#e8f5fb;
  --cr-brand-red:#c92a31;--cr-success:#16815b;--cr-warning:#b87812;--cr-danger:#c7353e;--cr-info:#2676a9;
  --cr-radius-sm:7px;--cr-radius-md:10px;--cr-radius-lg:14px;
  --cr-shadow-sm:0 1px 2px rgba(15,39,68,.06);--cr-shadow-card:0 8px 26px rgba(15,39,68,.08);--cr-shadow-pop:0 16px 40px rgba(15,39,68,.16);
  --cr-space-1:4px;--cr-space-2:8px;--cr-space-3:12px;--cr-space-4:16px;--cr-space-5:20px;--cr-space-6:24px;
  --brand-red:var(--cr-brand-red);--brand-ocean:var(--cr-accent);--brand-navy:var(--cr-primary);--brand-text:var(--cr-text);--border:var(--cr-border);--light-bg:var(--cr-surface-2);--card-shadow:var(--cr-shadow-card);
  --room-col-width:168px;--tape-row-height:42px;--tape-head-height:56px;
}
html[data-cr-theme="dark"]{
  --cr-bg:#121b28;--cr-surface:#192535;--cr-surface-2:#202e40;--cr-surface-3:#26364a;
  --cr-text:#edf3f8;--cr-muted:#a8b6c7;--cr-border:#34475d;--cr-border-strong:#4a6078;
  --cr-primary:#d8e8f5;--cr-primary-hover:#fff;--cr-accent:#55b7df;--cr-accent-soft:#173b50;
  --cr-brand-red:#ef6269;--cr-success:#58c899;--cr-warning:#e8b65c;--cr-danger:#ef777e;--cr-info:#6fbde5;
  --cr-shadow-sm:0 1px 2px rgba(0,0,0,.25);--cr-shadow-card:0 10px 30px rgba(0,0,0,.24);--cr-shadow-pop:0 18px 46px rgba(0,0,0,.42);
}
html{background:var(--cr-bg);color-scheme:light}
html[data-cr-theme="dark"]{color-scheme:dark}
body{background:var(--cr-bg)!important;color:var(--cr-text)!important;padding:10px 12px 18px!important;transition:background .18s ease,color .18s ease!important}
body,.app-header,.controls-panel,.full-panel,.settings-card,.occ-box,.log-col,.res-table-wrapper,.invoice-sheet,.legend-wrapper,.tape-controls-container,.tape-chart-wrapper,input,select,textarea,button{font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}

/* Foundation */
.app-header,.controls-panel,.full-panel,.settings-card,.occ-box,.log-col,.res-table-wrapper,.invoice-sheet,.legend-wrapper,.tape-controls-container{background:var(--cr-surface)!important;border-color:var(--cr-border)!important;color:var(--cr-text);box-shadow:var(--cr-shadow-card)!important}
.controls-panel,.full-panel{border-top-width:1px!important;border-radius:var(--cr-radius-lg)!important}
.container{gap:16px!important;max-width:1680px!important}.full-panel{max-width:1680px!important;padding:16px!important}
label{color:var(--cr-muted)!important;font-size:.7rem!important;letter-spacing:.035em}
input,select,textarea{background:var(--cr-surface)!important;color:var(--cr-text)!important;border:1px solid var(--cr-border)!important;border-radius:var(--cr-radius-sm)!important;padding:8px 10px!important;min-height:36px;box-shadow:none!important}
input:hover,select:hover,textarea:hover{border-color:var(--cr-border-strong)!important}
input:focus,select:focus,textarea:focus{border-color:var(--cr-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cr-accent) 16%,transparent)!important;outline:none!important}
input:disabled,input[readonly],select:disabled,textarea:disabled{background:var(--cr-surface-2)!important;color:var(--cr-muted)!important;opacity:.78}
button,.btn-action,.tab-btn,.lang-btn{border-radius:var(--cr-radius-sm)!important;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease,color .14s ease!important}
button:focus-visible,.btn-action:focus-visible,.tab-btn:focus-visible,.lang-btn:focus-visible{outline:2px solid var(--cr-accent)!important;outline-offset:2px!important}
.btn-action:hover,.tab-btn:hover,.lang-btn:hover{transform:translateY(-1px)}
.save-btn,.sync-tape-btn{background:var(--cr-primary)!important;color:#fff!important}.save-btn:hover,.sync-tape-btn:hover{background:var(--cr-primary-hover)!important}
html[data-cr-theme="dark"] .save-btn,html[data-cr-theme="dark"] .sync-tape-btn{color:#102033!important;background:#8ec9e7!important}
.btn-remove-item,.btn-del-small,.clean-action-cancel,.clean-action-noshow{color:var(--cr-danger)!important}
h2,h3{color:var(--cr-text)!important;border-color:var(--cr-border)!important}
.room-card,.service-card,.room-services-wrapper{background:var(--cr-surface-2)!important;border-color:var(--cr-border)!important}

/* Compact header */
.app-header.clean-header-v33{max-width:1680px!important;margin:0 auto 10px!important;padding:7px 10px!important;min-height:48px;border:1px solid var(--cr-border)!important;border-top:1px solid var(--cr-border)!important;border-radius:12px!important;box-shadow:var(--cr-shadow-sm)!important;flex-wrap:nowrap!important;gap:8px!important}
.clean-main-nav{gap:3px!important;flex-wrap:nowrap!important;min-width:0}.clean-main-nav>.tab-btn,.clean-more-btn{padding:7px 10px!important;min-height:34px;background:transparent!important;color:var(--cr-muted)!important;border:1px solid transparent!important;font-size:.78rem!important;font-weight:750!important;gap:6px!important;white-space:nowrap}
.clean-main-nav>.tab-btn:hover,.clean-more-btn:hover{background:var(--cr-surface-2)!important;color:var(--cr-text)!important}
.clean-main-nav>.tab-btn.active{background:var(--cr-primary)!important;color:#fff!important;border-color:var(--cr-primary)!important;box-shadow:none!important}
html[data-cr-theme="dark"] .clean-main-nav>.tab-btn.active{background:#d7e6f3!important;color:#132236!important;border-color:#d7e6f3!important}
.clean-header-actions{gap:4px!important;flex-wrap:nowrap!important;margin-left:auto}.cr-icon{width:16px;height:16px;display:block;flex:0 0 auto}
.cr-icon-button,.clean-header-action,.lang-btn{width:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:34px!important;padding:6px 9px!important;border:1px solid var(--cr-border)!important;background:var(--cr-surface)!important;color:var(--cr-muted)!important;font-size:.76rem!important;font-weight:750!important;cursor:pointer}
.cr-icon-button:hover,.clean-header-action:hover,.lang-btn:hover{background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border-color:var(--cr-border-strong)!important}
.clean-user-header-chip{padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:.74rem!important}
.cr-user-menu-wrap,.cr-filter-wrap{position:relative}.cr-user-menu{display:none;position:absolute;right:0;top:calc(100% + 7px);min-width:152px;padding:6px;background:var(--cr-surface);border:1px solid var(--cr-border);border-radius:10px;box-shadow:var(--cr-shadow-pop);z-index:500}.cr-user-menu-wrap.open .cr-user-menu{display:block}.cr-user-logout{width:100%!important;background:transparent!important;color:var(--cr-danger)!important;border:0!important;display:flex!important;align-items:center!important;gap:8px!important;padding:9px 10px!important;text-align:left}
.clean-more-menu{background:var(--cr-surface)!important;border:1px solid var(--cr-border)!important;box-shadow:var(--cr-shadow-pop)!important;border-radius:10px!important;padding:5px!important}.clean-more-menu button{color:var(--cr-text)!important;background:transparent!important;border:0!important}.clean-more-menu button:hover{background:var(--cr-surface-2)!important}.clean-more-menu .cr-more-main-tab{display:flex!important;width:100%!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important}
.cr-nav-caret{opacity:.55;font-size:.65rem}

/* Timeline first */
#tab-tape .full-panel{max-width:none!important;width:100%!important;padding:10px!important;overflow:visible!important}
#tab-tape .tape-collapsible-v33{border-color:var(--cr-border)!important;background:transparent!important}
#collapse-timeline-v33>.tape-collapse-head-v33{padding:6px 10px!important;background:var(--cr-surface)!important;border-color:var(--cr-border)!important;color:var(--cr-text)!important}
#collapse-timeline-v33>.tape-collapse-body-v33{gap:8px!important}
.cr-attention-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;margin:0 0 7px;background:var(--cr-surface);border:1px solid var(--cr-border);border-radius:10px;box-shadow:var(--cr-shadow-sm)}
.cr-attention-summary{display:flex;align-items:center;gap:8px;font-size:.72rem;color:var(--cr-muted);white-space:nowrap}.cr-attention-summary b{font-size:.77rem;color:var(--cr-text)}.cr-attention-items{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.cr-attention-items button{border:1px solid transparent;background:transparent;color:var(--cr-muted);padding:5px 8px;font-size:.7rem;font-weight:700;cursor:pointer}.cr-attention-items button strong{color:var(--cr-text);margin-right:3px}.cr-attention-items button:hover,.cr-attention-items button.active{background:var(--cr-accent-soft);color:var(--cr-accent);border-color:color-mix(in srgb,var(--cr-accent) 28%,var(--cr-border))}.cr-attention-items button.active strong{color:var(--cr-accent)}
.cr-evolved-tape-controls{padding:7px!important;margin-bottom:7px!important;border-radius:10px!important;gap:6px!important;box-shadow:var(--cr-shadow-sm)!important}
.cr-timeline-toolbar{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:8px;min-height:42px}.cr-timeline-nav{min-width:0}.cr-range-nav{gap:3px!important;justify-content:flex-start!important;white-space:nowrap}.cr-range-nav button{display:inline-flex;align-items:center;gap:4px!important;padding:6px 8px!important;min-height:32px;background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border:1px solid var(--cr-border)!important;font-size:.7rem!important;font-weight:750!important}.cr-range-nav h3{min-width:188px!important;font-size:.78rem!important;text-transform:none!important;letter-spacing:0!important;color:var(--cr-text)!important}.cr-timeline-search{height:34px;display:flex;align-items:center;gap:7px;padding:0 9px;background:var(--cr-surface-2);border:1px solid var(--cr-border);border-radius:8px;color:var(--cr-muted)}.cr-timeline-search:focus-within{border-color:var(--cr-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--cr-accent) 13%,transparent)}.cr-timeline-search input{border:0!important;background:transparent!important;min-height:30px!important;padding:4px 0!important;box-shadow:none!important;font-size:.78rem!important}.cr-timeline-toolbar-actions{display:flex;align-items:center;gap:4px}.cr-toolbar-button,.cr-zoom-button,.cr-zoom-value{height:32px;border:1px solid var(--cr-border);background:var(--cr-surface);color:var(--cr-muted);display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;font-size:.7rem;font-weight:750;cursor:pointer}.cr-toolbar-button:hover,.cr-zoom-button:hover,.cr-zoom-value:hover,.cr-toolbar-button.active{background:var(--cr-surface-2);color:var(--cr-text);border-color:var(--cr-border-strong)}.cr-toolbar-button.active{color:var(--cr-accent);background:var(--cr-accent-soft)}#cr-filter-count{display:none;min-width:17px;height:17px;border-radius:999px;background:var(--cr-accent);color:#fff;align-items:center;justify-content:center;font-size:.62rem}#cr-filter-count:not(:empty){display:inline-flex}.cr-zoom-control{display:flex}.cr-zoom-button{width:30px;padding:0}.cr-zoom-value{min-width:54px;border-left:0;border-right:0;border-radius:0!important}.cr-zoom-control>:first-child{border-radius:7px 0 0 7px!important}.cr-zoom-control>:last-child{border-radius:0 7px 7px 0!important}
.cr-filter-popover{display:none;position:absolute;right:0;top:calc(100% + 7px);width:282px;padding:10px;background:var(--cr-surface);border:1px solid var(--cr-border);border-radius:11px;box-shadow:var(--cr-shadow-pop);z-index:350}.cr-filter-wrap.open .cr-filter-popover{display:block}.cr-filter-title{font-size:.76rem;font-weight:800;color:var(--cr-text);margin-bottom:8px}.cr-filter-option{display:flex;align-items:center;gap:8px;padding:6px 7px;margin:0!important;border-radius:7px;color:var(--cr-text)!important;text-transform:none!important;cursor:pointer}.cr-filter-option:hover{background:var(--cr-surface-2)}.cr-filter-option input{width:15px!important;height:15px!important;min-height:0!important;padding:0!important;accent-color:var(--cr-accent)}.cr-filter-divider{height:1px;background:var(--cr-border);margin:8px 0}.cr-filter-native{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cr-filter-native-field{margin:0!important}.cr-filter-native-field:last-child{grid-column:1/-1}.cr-filter-native-field label{margin-bottom:3px!important}.cr-filter-native-field input,.cr-filter-native-field select{min-height:32px!important;padding:5px 7px!important;font-size:.72rem!important}.cr-filter-clear{margin-top:8px;width:100%;border:0;background:var(--cr-surface-2);color:var(--cr-muted);padding:7px;font-size:.7rem;font-weight:750;cursor:pointer}.cr-filter-clear:hover{color:var(--cr-text)}
.cr-timeline-action-row{margin:0!important;padding:4px 2px 0!important;border:0!important;min-height:34px}.cr-timeline-action-row>div:first-child{gap:4px!important}.cr-timeline-action-row .btn-action{padding:6px 9px!important;font-size:.7rem!important;min-height:30px}.cr-legacy-controls-row.cr-empty-row,.cr-legacy-zoom{display:none!important}

/* Tape refinement without changing booking color semantics */
.tape-chart-wrapper{max-height:calc(100vh - 205px)!important;min-height:430px!important;border:1px solid var(--cr-border)!important;border-radius:10px!important;background:var(--cr-surface)!important;box-shadow:none!important;scrollbar-color:var(--cr-border-strong) var(--cr-surface-2)!important}
.tape-grid,.tape-grid-row,.tape-grid-header{background:var(--cr-surface)!important}.tape-grid-row.alt{background:var(--cr-surface-2)!important}.tape-room-head,.tape-room-cell{background:var(--cr-surface)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important;box-shadow:4px 0 9px rgba(15,39,68,.045)!important}.tape-room-head{background:var(--cr-surface-2)!important}.tape-room-name{color:var(--cr-text)!important;font-size:.76rem!important}.tape-room-sub{display:none!important}.tape-day-head{background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}.tape-day-head .dow,.tape-day-head .mon{color:var(--cr-muted)!important}.tape-day-cell{background:var(--cr-surface)!important;border-color:var(--cr-border)!important}.tape-grid-row.alt .tape-day-cell{background:color-mix(in srgb,var(--cr-surface-2) 55%,var(--cr-surface))!important}.tape-day-head.tape-weekend,.tape-day-cell.tape-weekend{background:color-mix(in srgb,var(--cr-surface-2) 82%,var(--cr-surface))!important}.tape-day-head.tape-past,.tape-day-cell.tape-past{opacity:.78}.tape-day-head.tape-today{background:color-mix(in srgb,var(--cr-accent-soft) 72%,var(--cr-surface))!important;color:var(--cr-accent)!important;box-shadow:inset 0 -3px 0 var(--cr-accent)!important}.tape-day-head.tape-today::after{color:var(--cr-accent)!important}.tape-day-cell.tape-today{background:color-mix(in srgb,var(--cr-accent-soft) 42%,var(--cr-surface))!important}.tape-today-marker{background:var(--cr-accent)!important;opacity:.55!important}.tape-section-row{background:var(--cr-primary)!important;border-color:color-mix(in srgb,var(--cr-border) 35%,transparent)!important}.tape-section-inner{background:var(--cr-primary)!important;color:#fff!important;font-size:.64rem!important;height:29px!important}.tape-section-row{height:29px!important}.tape-grid-booking{border-radius:7px!important;height:calc(var(--tape-row-height) - 8px)!important;box-shadow:0 1px 4px rgba(15,23,42,.16)!important;padding:0 6px!important}.tape-grid-booking:hover{box-shadow:0 5px 14px rgba(15,23,42,.22)!important}.tape-grid-booking.chart-selected{outline:2px solid var(--cr-accent)!important;outline-offset:1px!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cr-accent) 22%,transparent),0 4px 12px rgba(15,23,42,.18)!important}.tape-grid-booking.highlight-search,.tape-grid-booking.cr-search-match{outline:2px solid var(--cr-accent)!important;outline-offset:1px!important;animation:none!important}.cr-search-active .tape-grid-booking.cr-search-miss,.cr-filter-active .tape-grid-booking.cr-filter-miss,.cr-attention-active .tape-grid-booking.cr-attention-miss{opacity:.22!important;filter:saturate(.35) brightness(.96)!important}.tape-booking-name{font-weight:850}.tape-booking-badges{gap:2px!important}.tape-grid-booking .badge{font-size:.55rem!important;padding:2px!important}.tape-booking-nights{font-size:.55rem!important}
html[data-cr-theme="dark"] .tape-section-row,html[data-cr-theme="dark"] .tape-section-inner{background:#263c55!important}.tape-day-cell:hover{background:color-mix(in srgb,var(--cr-accent-soft) 70%,var(--cr-surface))!important;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--cr-accent) 26%,transparent)!important}

/* Quick Peek */
#tape-tooltip.cr-quick-peek{width:310px;max-width:calc(100vw - 16px)!important;padding:10px 11px!important;background:color-mix(in srgb,var(--cr-surface) 96%,transparent)!important;color:var(--cr-text)!important;border:1px solid var(--cr-border)!important;border-radius:10px!important;box-shadow:var(--cr-shadow-pop)!important;backdrop-filter:blur(12px)!important;z-index:2200!important;pointer-events:none}.cr-peek-title{font-size:.82rem;font-weight:850;margin-bottom:7px}.cr-peek-grid{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;font-size:.68rem}.cr-peek-grid span{color:var(--cr-muted)}.cr-peek-grid b{font-weight:750;color:var(--cr-text);text-align:right}.cr-peek-grid b.due{color:var(--cr-danger)}.cr-peek-note{margin-top:7px;padding-top:7px;border-top:1px solid var(--cr-border);font-size:.67rem;color:var(--cr-muted);line-height:1.35}

/* Focus mode */
body.cr-timeline-focus{padding:4px!important;overflow:hidden}body.cr-timeline-focus>.app-header,body.cr-timeline-focus #collapse-overview-v33,body.cr-timeline-focus #today-operations-v35,body.cr-timeline-focus #cancelled-strip-v35,body.cr-timeline-focus #collapse-reservations-v33{display:none!important}body.cr-timeline-focus #tab-tape .full-panel{padding:4px!important;border:0!important;box-shadow:none!important;background:var(--cr-bg)!important}body.cr-timeline-focus #collapse-timeline-v33{border:0!important}body.cr-timeline-focus #collapse-timeline-v33>.tape-collapse-head-v33{display:none!important}body.cr-timeline-focus .tape-chart-wrapper{max-height:calc(100vh - 124px)!important;height:calc(100vh - 124px)!important}body.cr-timeline-focus .cr-focus-button{background:var(--cr-accent-soft)!important;color:var(--cr-accent)!important;border-color:var(--cr-accent)!important}

/* Dark mode surfaces; booking bars intentionally keep inline semantic colors */
html[data-cr-theme="dark"] .res-table th,html[data-cr-theme="dark"] .tape-table th.room-th,html[data-cr-theme="dark"] .invoice-cat-block{border-color:var(--cr-border)!important}html[data-cr-theme="dark"] .res-table td,html[data-cr-theme="dark"] .res-table th{border-color:var(--cr-border)!important}html[data-cr-theme="dark"] .res-table tbody tr,html[data-cr-theme="dark"] .invoice-sheet,html[data-cr-theme="dark"] .quick-action-modal,html[data-cr-theme="dark"] #quick-action-modal,html[data-cr-theme="dark"] #edit-booking-modal,html[data-cr-theme="dark"] #quick-booking-modal{background:var(--cr-surface)!important;color:var(--cr-text)!important}html[data-cr-theme="dark"] .swal2-popup{background:var(--cr-surface)!important;color:var(--cr-text)!important}html[data-cr-theme="dark"] .swal2-title,html[data-cr-theme="dark"] .swal2-html-container{color:var(--cr-text)!important}

@media(max-width:1100px){.app-header.clean-header-v33{flex-wrap:wrap!important}.clean-header-actions{width:auto}.cr-timeline-toolbar{grid-template-columns:1fr auto}.cr-timeline-search{grid-column:1/-1;grid-row:2}.cr-range-nav h3{min-width:160px!important}.tape-chart-wrapper{max-height:calc(100vh - 245px)!important}.cr-theme-label,.clean-header-action span[data-clean-label="sync"]{display:none}}
@media(max-width:780px){:root{--room-col-width:128px;--tape-row-height:40px;--tape-head-height:52px}.clean-main-nav>.tab-btn span,.clean-more-btn span[data-clean-label]{display:none}.cr-timeline-toolbar{grid-template-columns:1fr}.cr-timeline-toolbar-actions{justify-content:flex-start;flex-wrap:wrap}.cr-timeline-search{grid-row:auto}.cr-range-nav{flex-wrap:wrap!important}.cr-range-nav h3{order:-1;width:100%;text-align:left!important}.cr-attention-strip{align-items:flex-start;flex-direction:column}.cr-attention-items{justify-content:flex-start}.tape-chart-wrapper{min-height:360px!important}.cr-timeline-action-row{overflow-x:auto}}

@media print{
  html,html[data-cr-theme="dark"],body{background:#fff!important;color:#111!important;color-scheme:light!important}
  .cr-theme-toggle,.cr-attention-strip,.cr-timeline-toolbar,.cr-filter-popover,.cr-focus-button{display:none!important}
  .invoice-sheet,.print-sheet,.settings-card,.controls-panel,.full-panel{background:#fff!important;color:#111!important;box-shadow:none!important;border-color:#bbb!important}
  input,select,textarea{background:#fff!important;color:#111!important;border-color:#bbb!important}
}


/* ===== Gate UI-1.1 visual acceptance corrections ===== */
:root{--room-col-width:150px;--tape-row-height:32px;--tape-head-height:44px;--v320-month-h:22px}
body{padding:6px 8px 10px!important}
.app-header.clean-header-v33{margin-bottom:5px!important;padding:5px 7px!important;min-height:40px!important}
.clean-main-nav>.tab-btn,.clean-more-btn,.cr-icon-button,.clean-header-action,.lang-btn{min-height:30px!important;padding:4px 7px!important;font-size:.7rem!important}
#tab-tape .full-panel{padding:5px!important}
#collapse-timeline-v33>.tape-collapse-head-v33{padding:4px 7px!important;min-height:28px!important}
.cr-attention-strip{display:none!important}
.v320-tape-toolbar.cr-v320-evolved{gap:3px!important;padding:5px 6px!important;margin-bottom:4px!important;border-radius:8px!important;box-shadow:none!important}
.cr-v320-evolved .v320-nav-row,.cr-v320-evolved .v320-ops-row{gap:3px!important;flex-wrap:nowrap!important}
.cr-v320-evolved .v320-nav-row{padding-bottom:3px!important}
.cr-v320-evolved .v320-nav-group{gap:2px!important}
.cr-v320-evolved .v320-nav-group button,.cr-v320-evolved .v320-chip,.cr-v320-evolved .v320-inline select,.cr-v320-evolved .v320-inline input{min-height:27px!important;height:27px!important;padding:3px 6px!important;font-size:.62rem!important;border-radius:6px!important}
.cr-v320-evolved .v320-nav-group button{display:inline-flex!important;align-items:center!important;gap:3px!important}
.cr-v320-evolved .v320-nav-group .today{padding-inline:8px!important}
.cr-v320-evolved .v320-range-summary{font-size:.58rem!important;line-height:1.1!important}
.cr-v320-evolved .v3203-help{font-size:.62rem!important}
.cr-v320-evolved .v320-ops-row .btn-action,.cr-direct-button{min-height:27px!important;height:27px!important;padding:3px 6px!important;font-size:.62rem!important;border-radius:6px!important;gap:4px!important}
.cr-v320-evolved .v320-search{min-width:160px!important;max-width:260px!important;flex:1 1 170px!important}
.cr-v320-evolved .v320-search input{height:27px!important;min-height:27px!important;padding:3px 7px!important;font-size:.63rem!important}
.cr-view-menu-hidden{display:none!important}
.cr-direct-view-actions{display:flex;align-items:center;gap:3px;flex:0 0 auto}
.cr-direct-view-actions .cr-direct-button{width:auto!important;background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border:1px solid var(--cr-border)!important}
.cr-direct-view-actions .cr-direct-button.active{background:var(--cr-accent-soft)!important;color:var(--cr-accent)!important;border-color:color-mix(in srgb,var(--cr-accent) 45%,var(--cr-border))!important}
.cr-visible-filter-wrap{position:relative;flex:0 0 auto}
#cr-visible-filter-button{width:auto!important;background:var(--cr-surface)!important;color:var(--cr-muted)!important;border:1px solid var(--cr-border)!important}
#cr-visible-filter-button.active{background:var(--cr-accent-soft)!important;color:var(--cr-accent)!important}
#cr-visible-filter-count{display:none;min-width:15px;height:15px;border-radius:999px;background:var(--cr-accent);color:#fff;align-items:center;justify-content:center;font-size:.56rem}
#cr-visible-filter-count:not(:empty){display:inline-flex}
.cr-visible-filter-popover{top:calc(100% + 4px)!important;right:0!important;left:auto!important;width:230px!important;padding:7px!important}
.cr-visible-filter-options{display:grid;grid-template-columns:1fr 1fr;gap:2px}.cr-visible-filter-options .cr-filter-option{padding:4px 5px!important;font-size:.65rem!important}
.cr-visible-filter-options .cr-filter-option input{width:13px!important;height:13px!important}
.cr-visible-filter-clear{margin-top:5px!important;padding:5px!important}
.tape-chart-wrapper{max-height:calc(100vh - 128px)!important;min-height:520px!important;border-radius:7px!important}
.tape-grid-header{height:var(--tape-head-height)!important}
.tape-room-head{padding:4px 7px!important;font-size:.62rem!important}
.tape-room-cell{padding:2px 6px!important}
.tape-room-name{font-size:.67rem!important;line-height:1!important}
.tape-day-head{gap:0!important;font-size:.62rem!important}
.tape-day-head .dow{font-size:.49rem!important}.tape-day-head .num{font-size:.78rem!important}.tape-day-head .mon{font-size:.46rem!important}
.tape-grid-booking{height:calc(var(--tape-row-height) - 6px)!important;margin:0 2px!important;padding:0 4px!important;border-radius:5px!important;font-size:.64rem!important;border-left-width:3px!important}
.tape-booking-name{font-size:.64rem!important}.tape-booking-nights{font-size:.49rem!important}.tape-grid-booking .badge{font-size:.49rem!important;padding:1px 2px!important}
.tape-section-row,.tape-section-inner{height:23px!important}.tape-section-inner{font-size:.56rem!important;padding:0 7px!important}.tape-section-count{font-size:.5rem!important}
#tape-table-element>.v320-month-band{height:var(--v320-month-h)!important}.v320-month-corner,.v320-month-cell{font-size:.52rem!important}
.v320-top-scroll{height:11px!important;margin-bottom:1px!important}
body.cr-timeline-comfortable .tape-grid-booking{height:calc(var(--tape-row-height) - 7px)!important}

/* Full Light / Dark / System coverage for the main visible PMS surfaces. */
html[data-cr-theme="dark"] body,
html[data-cr-theme="dark"] #tab-tape,
html[data-cr-theme="dark"] #tab-billing,
html[data-cr-theme="dark"] #tab-dashboard,
html[data-cr-theme="dark"] #tab-settings,
html[data-cr-theme="dark"] #tab-finance{background:var(--cr-bg)!important;color:var(--cr-text)!important}
html[data-cr-theme="dark"] #login-overlay{background:#0d1622!important}
html[data-cr-theme="dark"] .login-box,
html[data-cr-theme="dark"] .app-header,
html[data-cr-theme="dark"] .full-panel,
html[data-cr-theme="dark"] .controls-panel,
html[data-cr-theme="dark"] .settings-card,
html[data-cr-theme="dark"] .v36-control-card,
html[data-cr-theme="dark"] .v35-strip,
html[data-cr-theme="dark"] .v35-strip-body,
html[data-cr-theme="dark"] .v35-ops-card,
html[data-cr-theme="dark"] .v320-tape-toolbar,
html[data-cr-theme="dark"] .v320-menu,
html[data-cr-theme="dark"] .v320-reference-bar,
html[data-cr-theme="dark"] .v320-compare-card,
html[data-cr-theme="dark"] .v320-side,
html[data-cr-theme="dark"] .res-table-wrapper,
html[data-cr-theme="dark"] .invoice-sheet,
html[data-cr-theme="dark"] .room-card,
html[data-cr-theme="dark"] .service-card,
html[data-cr-theme="dark"] #quick-action-modal,
html[data-cr-theme="dark"] #edit-booking-modal,
html[data-cr-theme="dark"] #quick-booking-modal,
html[data-cr-theme="dark"] .swal2-popup{background:var(--cr-surface)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .v320-nav-row{border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .v320-nav-group button,
html[data-cr-theme="dark"] .v320-chip,
html[data-cr-theme="dark"] .v320-inline select,
html[data-cr-theme="dark"] .v320-inline input,
html[data-cr-theme="dark"] .v320-search input,
html[data-cr-theme="dark"] .v320-menu button,
html[data-cr-theme="dark"] .cr-direct-button,
html[data-cr-theme="dark"] .cr-filter-clear{background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .v320-range-summary,
html[data-cr-theme="dark"] .v320-custom-fields label,
html[data-cr-theme="dark"] .v35-ops-card small,
html[data-cr-theme="dark"] .v320-side .line{color:var(--cr-muted)!important}
html[data-cr-theme="dark"] .v320-range-summary b,
html[data-cr-theme="dark"] .v320-reference-bar h3,
html[data-cr-theme="dark"] .v320-compare-head b,
html[data-cr-theme="dark"] .v35-ops-card b{color:var(--cr-text)!important}
html[data-cr-theme="dark"] .v320-top-scroll,
html[data-cr-theme="dark"] #tape-table-element>.v320-month-band,
html[data-cr-theme="dark"] .v320-month-cell{background:var(--cr-surface-2)!important;border-color:var(--cr-border)!important;color:var(--cr-text)!important}
html[data-cr-theme="dark"] .v320-month-corner{background:#263c55!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .v3-table,
html[data-cr-theme="dark"] .v3-table th,
html[data-cr-theme="dark"] .v3-table td,
html[data-cr-theme="dark"] .res-table,
html[data-cr-theme="dark"] .res-table th,
html[data-cr-theme="dark"] .res-table td,
html[data-cr-theme="dark"] table,
html[data-cr-theme="dark"] th,
html[data-cr-theme="dark"] td{background:var(--cr-surface)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .v3-table th,
html[data-cr-theme="dark"] .res-table th{background:var(--cr-surface-2)!important}
html[data-cr-theme="dark"] .meta-grid,
html[data-cr-theme="dark"] .room-services-wrapper,
html[data-cr-theme="dark"] .room-service-row,
html[data-cr-theme="dark"] .invoice-cat-block{background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .swal2-title,
html[data-cr-theme="dark"] .swal2-html-container,
html[data-cr-theme="dark"] .swal2-input-label{color:var(--cr-text)!important}
#collapse-timeline-v33{margin-top:0!important;margin-bottom:4px!important}
#today-operations-v35{margin-top:4px!important}
@media(max-width:1180px){.cr-v320-evolved .v320-ops-row{flex-wrap:wrap!important}.cr-v320-evolved .v320-search{max-width:none!important}.tape-chart-wrapper{max-height:calc(100vh - 160px)!important}}


/* ===== Gate UI-1.2 — Dark Mode Acceptance ===== */
html[data-cr-theme="dark"]{
  --cr-bg:#111a26;
  --cr-surface:#182433;
  --cr-surface-2:#202d3d;
  --cr-surface-3:#27374a;
  --cr-text:#e3eaf2;
  --cr-muted:#9dafc3;
  --cr-border:#34465a;
  --cr-border-strong:#4a6077;
  --cr-accent:#62b9df;
  --cr-accent-soft:#17384a;
  --cr-shadow-sm:0 1px 2px rgba(0,0,0,.24);
  --cr-shadow-card:0 8px 24px rgba(0,0,0,.22);
  --cr-shadow-pop:0 16px 38px rgba(0,0,0,.42);
}

/* Daily Attention stays visible but extremely compact. */
.cr-attention-strip{
  display:flex!important;
  min-height:25px!important;
  padding:2px 6px!important;
  margin:0 0 3px!important;
  gap:5px!important;
  border-radius:7px!important;
  box-shadow:none!important;
}
.cr-attention-summary{gap:5px!important;font-size:.61rem!important}
.cr-attention-summary b{font-size:.64rem!important}
.cr-attention-items{gap:2px!important;flex-wrap:nowrap!important}
.cr-attention-items button{padding:2px 5px!important;font-size:.59rem!important;min-height:20px!important;border-radius:5px!important}

/* Timeline: every structural cell gets a dark surface. */
html[data-cr-theme="dark"] .tape-chart-wrapper,
html[data-cr-theme="dark"] .tape-grid,
html[data-cr-theme="dark"] .tape-grid-header,
html[data-cr-theme="dark"] .tape-grid-row,
html[data-cr-theme="dark"] .tape-day-cell,
html[data-cr-theme="dark"] .tape-room-cell{
  background:var(--cr-surface)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .tape-grid-row.alt,
html[data-cr-theme="dark"] .tape-day-head,
html[data-cr-theme="dark"] .tape-room-head{
  background:var(--cr-surface-2)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .tape-grid-row.alt .tape-day-cell{
  background:color-mix(in srgb,var(--cr-surface-2) 56%,var(--cr-surface))!important;
}
html[data-cr-theme="dark"] .tape-day-head .dow,
html[data-cr-theme="dark"] .tape-day-head .mon,
html[data-cr-theme="dark"] .tape-room-sub{color:var(--cr-muted)!important}

/* Weekend / Today / selected / hover remain distinct without neon contrast. */
html[data-cr-theme="dark"] .tape-day-head.tape-weekend,
html[data-cr-theme="dark"] .tape-day-cell.tape-weekend{
  background:color-mix(in srgb,var(--cr-surface-3) 72%,var(--cr-surface))!important;
}
html[data-cr-theme="dark"] .tape-day-head.tape-today{
  background:color-mix(in srgb,var(--cr-accent-soft) 78%,var(--cr-surface-2))!important;
  color:#b9dcf0!important;
  box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--cr-accent) 70%,transparent)!important;
}
html[data-cr-theme="dark"] .tape-day-cell.tape-today{
  background:color-mix(in srgb,var(--cr-accent-soft) 56%,var(--cr-surface))!important;
}
html[data-cr-theme="dark"] .tape-day-cell:hover{
  background:color-mix(in srgb,var(--cr-accent-soft) 48%,var(--cr-surface-2))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cr-accent) 40%,var(--cr-border))!important;
}
html[data-cr-theme="dark"] .tape-grid-booking{
  border-color:color-mix(in srgb,currentColor 22%,var(--cr-border))!important;
  box-shadow:0 1px 3px rgba(0,0,0,.34)!important;
}
html[data-cr-theme="dark"] .tape-grid-booking:hover{
  filter:brightness(1.05) saturate(.97);
  box-shadow:0 4px 11px rgba(0,0,0,.38)!important;
}
html[data-cr-theme="dark"] .tape-grid-booking.chart-selected{
  outline-color:#76c3e5!important;
  box-shadow:0 0 0 2px rgba(98,185,223,.24),0 4px 12px rgba(0,0,0,.4)!important;
}
/* Intentionally no background/color override on booking bars: semantic booking colors remain authoritative. */

/* Popup and menu surfaces must never stay light in Dark Mode. */
html[data-cr-theme="dark"] .cr-filter-popover,
html[data-cr-theme="dark"] .cr-user-menu,
html[data-cr-theme="dark"] .clean-more-menu,
html[data-cr-theme="dark"] .clean-booking-menu-v33,
html[data-cr-theme="dark"] .v34-action-menu,
html[data-cr-theme="dark"] .tape-tools-menu-v33,
html[data-cr-theme="dark"] .v3101-menu,
html[data-cr-theme="dark"] .v3103-range-menu,
html[data-cr-theme="dark"] .v312-quick-menu,
html[data-cr-theme="dark"] .v314-more-menu,
html[data-cr-theme="dark"] .v320-menu,
html[data-cr-theme="dark"] #tape-tooltip{
  background:var(--cr-surface)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
  box-shadow:var(--cr-shadow-pop)!important;
}
html[data-cr-theme="dark"] .clean-more-menu button,
html[data-cr-theme="dark"] .clean-booking-menu-v33 button,
html[data-cr-theme="dark"] .v34-action-menu button,
html[data-cr-theme="dark"] .tape-tools-menu-v33 button,
html[data-cr-theme="dark"] .v3101-menu button,
html[data-cr-theme="dark"] .v3103-range-menu button,
html[data-cr-theme="dark"] .v312-quick-menu button,
html[data-cr-theme="dark"] .v314-more-menu button,
html[data-cr-theme="dark"] .v320-menu button{
  background:transparent!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .clean-more-menu button:hover,
html[data-cr-theme="dark"] .clean-booking-menu-v33 button:hover,
html[data-cr-theme="dark"] .v34-action-menu button:hover,
html[data-cr-theme="dark"] .tape-tools-menu-v33 button:hover,
html[data-cr-theme="dark"] .v3101-menu button:hover,
html[data-cr-theme="dark"] .v3103-range-menu button:hover,
html[data-cr-theme="dark"] .v312-quick-menu button:hover,
html[data-cr-theme="dark"] .v314-more-menu button:hover,
html[data-cr-theme="dark"] .v320-menu button:hover{background:var(--cr-surface-2)!important}

/* Inputs and native controls: no isolated white boxes. */
html[data-cr-theme="dark"] input,
html[data-cr-theme="dark"] select,
html[data-cr-theme="dark"] textarea,
html[data-cr-theme="dark"] .swal2-input,
html[data-cr-theme="dark"] .swal2-select,
html[data-cr-theme="dark"] .swal2-textarea{
  background:var(--cr-surface-2)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] input::placeholder,
html[data-cr-theme="dark"] textarea::placeholder{color:#8294a8!important;opacity:1}
html[data-cr-theme="dark"] option{background:var(--cr-surface-2)!important;color:var(--cr-text)!important}

/* Daily Operations and attention surfaces. */
html[data-cr-theme="dark"] .cr-attention-strip,
html[data-cr-theme="dark"] #today-operations-v35,
html[data-cr-theme="dark"] .v35-strip,
html[data-cr-theme="dark"] .v35-strip-head,
html[data-cr-theme="dark"] .v35-strip-body,
html[data-cr-theme="dark"] .v35-ops-grid,
html[data-cr-theme="dark"] .v35-ops-card,
html[data-cr-theme="dark"] .v35-ops-scroll,
html[data-cr-theme="dark"] .v35-ops-table,
html[data-cr-theme="dark"] .v363-ops-table,
html[data-cr-theme="dark"] .v37-ops-table{
  background:var(--cr-surface)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .v35-ops-table th,
html[data-cr-theme="dark"] .v363-ops-table th,
html[data-cr-theme="dark"] .v37-ops-table th{background:var(--cr-surface-2)!important;color:var(--cr-text)!important}
html[data-cr-theme="dark"] .v35-muted,
html[data-cr-theme="dark"] .v35-currency{color:var(--cr-muted)!important}

/* Modals / dialogs. */
html[data-cr-theme="dark"] .swal2-popup,
html[data-cr-theme="dark"] .quick-action-modal,
html[data-cr-theme="dark"] #quick-action-modal,
html[data-cr-theme="dark"] #edit-booking-modal,
html[data-cr-theme="dark"] #quick-booking-modal{
  background:var(--cr-surface)!important;
  color:var(--cr-text)!important;
  border:1px solid var(--cr-border)!important;
}
html[data-cr-theme="dark"] .swal2-title,
html[data-cr-theme="dark"] .swal2-html-container,
html[data-cr-theme="dark"] .swal2-close{color:var(--cr-text)!important}

/* Sync Review visible surfaces follow the same dark tokens. */
html[data-cr-theme="dark"] .v313-sync-overlay{background:rgba(5,10,17,.72)!important}
html[data-cr-theme="dark"] .v313-sync-panel,
html[data-cr-theme="dark"] .v314-sync-panel,
html[data-cr-theme="dark"] .v314-sync-header,
html[data-cr-theme="dark"] .v314-tabs,
html[data-cr-theme="dark"] .v314-inline-status,
html[data-cr-theme="dark"] .v314-filter-row,
html[data-cr-theme="dark"] .v313-sync-body,
html[data-cr-theme="dark"] .v313-sync-foot,
html[data-cr-theme="dark"] .cr-review-panel,
html[data-cr-theme="dark"] .cr-review-card,
html[data-cr-theme="dark"] .cr-review-note,
html[data-cr-theme="dark"] .cr-review-empty,
html[data-cr-theme="dark"] .cr-review-paging{
  background:var(--cr-surface)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .v314-tabs button,
html[data-cr-theme="dark"] .v314-filter-row button,
html[data-cr-theme="dark"] .cr-review-actions button,
html[data-cr-theme="dark"] .cr-review-paging button{
  background:var(--cr-surface-2)!important;
  color:var(--cr-text)!important;
  border-color:var(--cr-border)!important;
}
html[data-cr-theme="dark"] .v314-tabs button.active{
  background:var(--cr-accent-soft)!important;
  color:#b9dcf0!important;
  border-color:color-mix(in srgb,var(--cr-accent) 42%,var(--cr-border))!important;
}

@media(max-width:900px){
  .cr-attention-items{overflow-x:auto;max-width:100%}
}


/* ===== Gate UI-1.2 FINAL TIMELINE & CONTROLS ===== */
:root{--room-col-width:142px;--tape-row-height:29px;--tape-head-height:40px;--v320-month-h:20px}
.tape-grid-booking{height:24px!important;padding:0 4px!important;gap:4px!important;font-size:.59rem!important;align-items:center!important;justify-content:center!important}
.tape-booking-name{flex:1 1 auto!important;min-width:0!important;text-align:center!important;font-size:.59rem!important;line-height:1!important}
.cr-booking-rate,.cr-booking-pax{flex:0 0 auto;font-size:.54rem;font-weight:800;opacity:.88}
.tape-booking-badges{display:flex!important;align-items:center!important;gap:2px!important;flex:0 0 auto!important}
.cr-booking-status-icon{display:inline-flex;align-items:center;justify-content:center;min-width:14px;height:14px;font-size:.54rem;line-height:1;border-radius:4px;background:rgba(255,255,255,.28)}
.tape-booking-nights,.tape-grid-booking>.badge{display:none!important}
.tape-room-name{font-size:.64rem!important}.tape-room-cell{padding:1px 5px!important}
.tape-grid-header{height:var(--tape-head-height)!important;position:sticky!important;top:var(--v320-month-h)!important;z-index:90!important}
.tape-room-head,.tape-room-cell{position:sticky!important;left:0!important;z-index:35!important}
.tape-room-head{z-index:96!important}
.tape-section-row{height:21px!important}.tape-section-inner{height:21px!important;font-size:.54rem!important}
.v320-tape-toolbar.cr-v320-evolved{padding:4px 5px!important;gap:3px!important}
.cr-v320-evolved .v320-nav-row{min-height:25px!important;padding-bottom:2px!important}
.cr-v320-evolved .v320-ops-row{min-height:27px!important}
.cr-v320-evolved .v320-nav-group button,.cr-v320-evolved .v320-ops-row .btn-action{height:25px!important;min-height:25px!important;padding:2px 6px!important;font-size:.6rem!important}
.cr-v320-evolved .v320-range-summary{display:block!important;margin-left:auto!important;font-size:.56rem!important;color:var(--cr-muted)!important}
.cr-v320-evolved .v320-range-summary b{font-weight:800!important;color:var(--cr-text)!important}
.cr-legacy-official-hidden{display:none!important}
.cr-icon-only{width:27px!important;min-width:27px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.cr-icon-only .cr-icon{width:14px;height:14px}
.cr-search-icon-wrap{position:relative!important;flex:0 0 auto!important;min-width:0!important;max-width:none!important}
.cr-search-popover{display:none;position:absolute;right:0;top:calc(100% + 4px);width:245px;padding:6px;background:var(--cr-surface);border:1px solid var(--cr-border);border-radius:8px;box-shadow:var(--cr-shadow-pop);z-index:6500}
.cr-search-icon-wrap.open .cr-search-popover{display:block}
.cr-search-popover input{width:100%!important;height:29px!important;min-height:29px!important;padding:4px 7px!important;font-size:.66rem!important}
.cr-visible-filter-popover{z-index:6500!important}
.cr-v320-native-filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
.cr-v320-native-filters .v320-inline{display:block!important}.cr-v320-native-filters select{width:100%!important;height:28px!important;min-height:28px!important;font-size:.62rem!important}
.cr-official-tools{position:relative;flex:0 0 auto}
.cr-tools-button{width:auto!important;background:var(--cr-surface-2)!important;color:var(--cr-text)!important;border:1px solid var(--cr-border)!important}
.cr-tools-popover{display:none;position:absolute;right:0;top:calc(100% + 4px);min-width:190px;padding:5px;background:var(--cr-surface);border:1px solid var(--cr-border);border-radius:8px;box-shadow:var(--cr-shadow-pop);z-index:6500}
.cr-official-tools.open .cr-tools-popover{display:block}
.cr-tools-popover button{display:block;width:100%;padding:6px 7px;border:0;border-radius:5px;background:transparent;color:var(--cr-text);text-align:left;font-size:.64rem;font-weight:700;cursor:pointer}
.cr-tools-popover button:hover{background:var(--cr-surface-2)}
.cr-tools-divider{height:1px;background:var(--cr-border);margin:4px 0}
.cr-direct-view-actions{display:flex!important;gap:3px!important}.cr-direct-view-actions .cr-direct-button{height:25px!important;min-height:25px!important;font-size:.6rem!important}
.cr-attention-strip{min-height:22px!important;padding:1px 5px!important;margin-bottom:2px!important}
.cr-attention-line{display:flex;align-items:center;gap:0;min-width:0;width:100%;overflow:hidden}
.cr-attention-line>span,.cr-attention-line>button{border:0;background:transparent;color:var(--cr-muted);font-size:.56rem!important;padding:2px 6px!important;white-space:nowrap;min-height:18px!important}
.cr-attention-line>span+button,.cr-attention-line>button+button{border-left:1px solid var(--cr-border)}
.cr-attention-line b{color:var(--cr-text);font-weight:800}
.cr-attention-line button[data-kind]{cursor:pointer}.cr-attention-line button[data-kind].active{color:var(--cr-accent);background:var(--cr-accent-soft)}
.cr-attention-hide{margin-left:auto!important;font-size:.7rem!important;cursor:pointer!important}
.cr-attention-strip.collapsed{width:max-content!important;margin-left:auto!important;background:transparent!important;border-color:transparent!important;padding:0!important}
.cr-attention-expand{height:20px!important;min-height:20px!important;padding:1px 5px!important;font-size:.55rem!important;background:var(--cr-surface-2)!important;color:var(--cr-muted)!important;border:1px solid var(--cr-border)!important;border-radius:5px!important;cursor:pointer}

/* Full Screen: Timeline essentials only. */
#tab-tape .full-panel:fullscreen{background:var(--cr-bg)!important;color:var(--cr-text)!important;padding:4px!important;overflow:hidden!important}
#tab-tape .full-panel:fullscreen .v320-tape-toolbar{position:sticky!important;top:0!important;z-index:7000!important}
#tab-tape .full-panel:fullscreen #collapse-overview-v33,
#tab-tape .full-panel:fullscreen #today-operations-v35,
#tab-tape .full-panel:fullscreen #cancelled-strip-v35,
#tab-tape .full-panel:fullscreen #collapse-reservations-v33,
#tab-tape .full-panel:fullscreen .res-table-wrapper,
#tab-tape .full-panel:fullscreen .legend-wrapper{display:none!important}
#tab-tape .full-panel:fullscreen #collapse-timeline-v33{display:block!important;border:0!important;margin:0!important}
#tab-tape .full-panel:fullscreen #collapse-timeline-v33>.tape-collapse-head-v33{display:none!important}
#tab-tape .full-panel:fullscreen .tape-chart-wrapper{height:calc(100vh - 78px)!important;max-height:calc(100vh - 78px)!important;min-height:0!important}
#tab-tape .full-panel:fullscreen .cr-v320-evolved .v320-ops-row> :not(.cr-search-icon-wrap):not(.cr-visible-filter-wrap):not(.cr-direct-view-actions){display:none!important}
#tab-tape .full-panel:fullscreen .cr-attention-strip{display:none!important}
#tab-tape .full-panel:fullscreen .tape-grid-header{position:sticky!important;top:var(--v320-month-h)!important}
#tab-tape .full-panel:fullscreen .tape-room-head,#tab-tape .full-panel:fullscreen .tape-room-cell{position:sticky!important;left:0!important}

/* Dark mode coverage for the final Search / Filters / Tools surfaces. */
html[data-cr-theme="dark"] .cr-search-popover,
html[data-cr-theme="dark"] .cr-tools-popover,
html[data-cr-theme="dark"] .cr-visible-filter-popover{background:var(--cr-surface)!important;color:var(--cr-text)!important;border-color:var(--cr-border)!important}
html[data-cr-theme="dark"] .cr-tools-popover button:hover{background:var(--cr-surface-2)!important}
html[data-cr-theme="dark"] .cr-booking-status-icon{background:rgba(10,18,28,.28);border:1px solid rgba(255,255,255,.12)}
html[data-cr-theme="dark"] .cr-attention-line>span+button,
html[data-cr-theme="dark"] .cr-attention-line>button+button{border-color:var(--cr-border)!important}
@media(max-width:900px){.cr-attention-line{overflow-x:auto}.cr-v320-evolved .v320-ops-row{flex-wrap:wrap!important}}

/* Manual acceptance: compact delayed Quick Glance */
#tape-tooltip.cr-quick-peek{width:285px!important;padding:9px 10px!important}
.cr-quick-peek .cr-peek-title{font-size:.8rem;font-weight:900;margin-bottom:5px}
.cr-quick-peek .cr-peek-line{font-size:.64rem;line-height:1.4;color:var(--cr-text);white-space:normal}
.cr-quick-peek .cr-peek-line+.cr-peek-line{margin-top:2px}
.cr-quick-peek .cr-peek-warning{margin-top:6px;padding-top:6px;border-top:1px solid var(--cr-border);font-size:.62rem;font-weight:800;color:var(--cr-danger)}

/* Final Operations — Excel-style Timeline view sizing (view-only; no reservation mutation). */
.tape-day-head{position:relative}
.cr-timeline-col-resizer{
  position:absolute;top:0;right:-4px;width:8px;height:100%;z-index:125;
  cursor:col-resize;touch-action:none;user-select:none
}
.cr-timeline-col-resizer::after{
  content:"";position:absolute;top:18%;bottom:18%;left:3px;width:1px;
  background:transparent;transition:background .12s ease,box-shadow .12s ease
}
.cr-timeline-col-resizer:hover::after{background:var(--cr-accent,#1689bd);box-shadow:0 0 0 1px color-mix(in srgb,var(--cr-accent,#1689bd) 20%,transparent)}
.tape-room-cell>.cr-timeline-row-resizer{
  position:absolute;left:0;right:0;bottom:-4px;height:8px;z-index:65;
  cursor:row-resize;touch-action:none;user-select:none
}
.tape-room-cell>.cr-timeline-row-resizer::after{
  content:"";position:absolute;left:0;right:0;top:3px;height:1px;
  background:transparent;transition:background .12s ease,box-shadow .12s ease
}
.tape-room-cell>.cr-timeline-row-resizer:hover::after{background:var(--cr-accent,#1689bd);box-shadow:0 0 0 1px color-mix(in srgb,var(--cr-accent,#1689bd) 18%,transparent)}
body.cr-timeline-view-resizing{user-select:none!important}
body[data-cr-timeline-resize-axis="column"],body[data-cr-timeline-resize-axis="column"] *{cursor:col-resize!important}
body[data-cr-timeline-resize-axis="row"],body[data-cr-timeline-resize-axis="row"] *{cursor:row-resize!important}
html[data-cr-theme="dark"] .cr-timeline-col-resizer:hover::after,
html[data-cr-theme="dark"] .tape-room-cell>.cr-timeline-row-resizer:hover::after{background:var(--cr-accent,#55b7df)}

/* Track A final small closure — header-only resize ownership + native vertical wheel */
.tape-chart-wrapper{scroll-behavior:auto!important;overscroll-behavior-y:auto!important}
.tape-room-cell>.cr-timeline-row-resizer{left:0!important;right:0!important;width:100%!important}
.tape-day-head>.cr-timeline-col-resizer{cursor:col-resize}.tape-room-cell>.cr-timeline-row-resizer{cursor:row-resize}
.tape-day-cell>.cr-timeline-col-resizer,.tape-day-cell>.cr-timeline-row-resizer,.tape-grid-booking>.cr-timeline-col-resizer,.tape-grid-booking>.cr-timeline-row-resizer{display:none!important;pointer-events:none!important}

/* Final hotfix — native vertical wheel, explicit horizontal scroll, no left-drag panning. */
#tape-scroll-area,.tape-chart-wrapper{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior:auto!important;overscroll-behavior-y:auto!important;scroll-behavior:auto!important;touch-action:pan-x pan-y!important}
#tape-scroll-area.v3203-grabbing,.tape-chart-wrapper.v3203-grabbing{cursor:default!important}
#v320-top-scroll{overscroll-behavior:auto!important;touch-action:pan-x!important}
