/* Print Preview Modal Styles */
.print-preview-modal-backdrop {
    z-index: 1100;
}

.print-preview-modal {
    width: 90vw;
    max-width: 1600px;
    height: auto; /* Let modal size itself based on content */
    max-height: 90vh; /* But don't exceed viewport */
    margin: 5vh auto;
}

.print-preview-modal .modal-content {
    background: var(--modal-background) !important;
    color: var(--modal-text) !important;
}

.print-preview-modal .modal-header {
    background: var(--modal-header-background) !important;
    border-bottom-color: var(--modal-header-border) !important;
}

.print-preview-modal .modal-header h3 {
    color: var(--modal-text) !important;
}

.print-preview-modal .modal-body {
    background: var(--modal-background) !important;
}

.print-preview-modal .modal-close {
    color: var(--modal-text) !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0.25rem !important;
}

.print-preview-modal .modal-close:hover {
    color: #666 !important;
}

[data-theme="dark"] .print-preview-modal .modal-close {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .print-preview-modal .modal-close:hover {
    color: #d1d5db !important;
}

.print-preview-body {
    display: flex;
    gap: 2rem;
    height: calc(100% - 60px); /* Account for header */
    padding: 1rem;
}

.print-preview-controls {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.control-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-background);
    color: var(--text-color);
    font-size: 0.9rem;
}

.hour-range-info {
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.month-info {
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.zoom-display-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.zoom-display-info label {
    font-weight: 600;
    color: var(--text-color);
}

.zoom-display-info span {
    font-weight: 600;
    color: var(--text-color);
}

.zoom-hint {
    color: var(--text-secondary) !important;
    font-weight: normal !important;
    font-style: italic;
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.preview-actions button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preview-actions .btn-primary {
    background: var(--primary-color, #3B82F6);
    color: white;
}

.preview-actions .btn-primary:hover {
    background: var(--primary-color-hover, #2563EB);
}

.preview-actions .btn-secondary {
    background: var(--background-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.preview-actions .btn-secondary:hover {
    background: var(--background-tertiary);
}

.print-preview-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto; /* Allow scrolling if paper is larger than container */
    background: var(--background-tertiary, #f5f5f5);
    border-radius: 8px;
    padding: 2rem;
    cursor: grab;
}

.print-preview-display:active {
    cursor: grabbing;
}

.print-preview-paper {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    /* transform: scale() is now applied dynamically via inline style */
    width: 1056px; /* 11in at 96 DPI - LANDSCAPE width */
    height: 816px; /* 8.5in at 96 DPI - LANDSCAPE height */
    padding: 48px; /* 0.5 inches at 96 DPI */
    box-sizing: border-box; /* Include padding in dimensions */
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    flex-shrink: 0; /* Don't shrink in flex container */
}

.print-preview-content {
    height: 100%;
    overflow: hidden;
}

/* Ensure calendar and grid have proper height constraints for row distribution */
.print-preview-paper .calendar {
    height: 100%;
}

.print-preview-paper .calendar-grid {
    flex: 1 !important; /* Fill remaining space after header in flex container */
    min-height: 0 !important; /* Allow grid to shrink below content size in flexbox */
    height: auto !important; /* Override the calc() from base styles */
}

.print-preview-paper .calendar-day {
    min-height: 0 !important; /* Allow day cells to shrink to fit in grid rows */
    flex-direction: row !important; /* Allow horizontal layout */
    flex-wrap: wrap !important; /* Allow wrapping */
    align-items: flex-start !important;
    align-content: flex-start !important;
    padding: var(--print-day-cell-padding, 4px) !important;
}

/* Optimize day number and event layout for print to fit more content */
.print-preview-paper .calendar-header {
    padding: var(--print-header-padding, 12px) !important;
}

.print-preview-paper .calendar-header h2,
.print-preview-paper .month-year {
    font-size: var(--print-header-font, 1.8rem) !important;
}

.print-preview-paper .weekday-header {
    font-size: var(--print-weekday-font, 0.9rem) !important;
    padding: var(--print-weekday-padding, 8px) !important;
}

.print-preview-paper .day-number {
    font-size: var(--print-day-number-font, 0.8rem) !important;
    margin-bottom: 0 !important;
    margin-right: 4px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important; /* Don't shrink the day number */
}

.print-preview-paper .day-events {
    flex: 1 !important;
    flex-basis: 0 !important; /* Force wrapping */
    min-width: 0 !important;
}

.print-preview-paper .event-box {
    font-size: var(--print-event-font, 0.6rem) !important;
    padding: var(--print-event-box-padding, 1px) !important;
}

/* Hide UI elements in preview */
.print-preview-paper .app-sidebar,
.print-preview-paper .print-button,
.print-preview-paper .nav-button,
.print-preview-paper .today-button,
.print-preview-paper .time-increment-button,
.print-preview-paper .current-time-indicator-container,
.print-preview-paper .current-time-indicator {
    display: none !important;
}


/* Remove today highlighting in preview */
.print-preview-paper .calendar-day.today,
.print-preview-paper .week-day-header.today,
.print-preview-paper .week-day-column.today {
    background-color: transparent !important;
    border: 1px solid var(--calendar-border, #f0f0f0) !important;
    font-weight: normal !important;
    box-shadow: none !important;
}

.print-preview-paper .calendar-day.today .day-number {
    color: inherit !important;
    font-weight: 600 !important;
}

.print-preview-paper .calendar-day.today::before,
.print-preview-paper .day-cell.today::before {
    display: none !important; /* Hide apple-style today indicator bar */
}

/* Remove selected day highlighting in preview */
.print-preview-paper .calendar-day.selected {
    background-color: transparent !important;
    border: 1px solid var(--calendar-border, #f0f0f0) !important;
    box-shadow: none !important;
}

.print-preview-paper .calendar-day.selected .day-number {
    color: inherit !important;
    font-weight: 600 !important;
}

/* Week view hour range filtering in preview - target all possible selector paths */
/* Hide hours before start hour (0-23) - trying multiple selector paths */
.print-preview-paper[data-start-hour="1"] .time-grid .time-slot:nth-child(1),
.print-preview-paper[data-start-hour="1"] .week-content .time-slot:nth-child(1),
.print-preview-paper[data-start-hour="1"] .time-slot:nth-child(1) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="2"] .time-grid .time-slot:nth-child(-n+2),
.print-preview-paper[data-start-hour="2"] .week-content .time-slot:nth-child(-n+2),
.print-preview-paper[data-start-hour="2"] .time-slot:nth-child(-n+2) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="3"] .time-grid .time-slot:nth-child(-n+3),
.print-preview-paper[data-start-hour="3"] .week-content .time-slot:nth-child(-n+3),
.print-preview-paper[data-start-hour="3"] .time-slot:nth-child(-n+3) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="4"] .time-grid .time-slot:nth-child(-n+4),
.print-preview-paper[data-start-hour="4"] .week-content .time-slot:nth-child(-n+4),
.print-preview-paper[data-start-hour="4"] .time-slot:nth-child(-n+4) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="5"] .time-grid .time-slot:nth-child(-n+5),
.print-preview-paper[data-start-hour="5"] .week-content .time-slot:nth-child(-n+5),
.print-preview-paper[data-start-hour="5"] .time-slot:nth-child(-n+5) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="6"] .time-grid .time-slot:nth-child(-n+6),
.print-preview-paper[data-start-hour="6"] .week-content .time-slot:nth-child(-n+6),
.print-preview-paper[data-start-hour="6"] .time-slot:nth-child(-n+6) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="7"] .time-grid .time-slot:nth-child(-n+7),
.print-preview-paper[data-start-hour="7"] .week-content .time-slot:nth-child(-n+7),
.print-preview-paper[data-start-hour="7"] .time-slot:nth-child(-n+7) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="8"] .time-grid .time-slot:nth-child(-n+8),
.print-preview-paper[data-start-hour="8"] .week-content .time-slot:nth-child(-n+8),
.print-preview-paper[data-start-hour="8"] .time-slot:nth-child(-n+8) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="9"] .time-grid .time-slot:nth-child(-n+9),
.print-preview-paper[data-start-hour="9"] .week-content .time-slot:nth-child(-n+9),
.print-preview-paper[data-start-hour="9"] .time-slot:nth-child(-n+9) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="10"] .time-grid .time-slot:nth-child(-n+10),
.print-preview-paper[data-start-hour="10"] .week-content .time-slot:nth-child(-n+10),
.print-preview-paper[data-start-hour="10"] .time-slot:nth-child(-n+10) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="11"] .time-grid .time-slot:nth-child(-n+11),
.print-preview-paper[data-start-hour="11"] .week-content .time-slot:nth-child(-n+11),
.print-preview-paper[data-start-hour="11"] .time-slot:nth-child(-n+11) { 
    display: none !important; 
}

.print-preview-paper[data-start-hour="12"] .time-grid .time-slot:nth-child(-n+12),
.print-preview-paper[data-start-hour="12"] .week-content .time-slot:nth-child(-n+12),
.print-preview-paper[data-start-hour="12"] .time-slot:nth-child(-n+12) { 
    display: none !important; 
}

/* Adding more for brevity - showing pattern for remaining hours */
.print-preview-paper[data-start-hour="13"] .time-slot:nth-child(-n+13),
.print-preview-paper[data-start-hour="14"] .time-slot:nth-child(-n+14),
.print-preview-paper[data-start-hour="15"] .time-slot:nth-child(-n+15),
.print-preview-paper[data-start-hour="16"] .time-slot:nth-child(-n+16),
.print-preview-paper[data-start-hour="17"] .time-slot:nth-child(-n+17),
.print-preview-paper[data-start-hour="18"] .time-slot:nth-child(-n+18),
.print-preview-paper[data-start-hour="19"] .time-slot:nth-child(-n+19),
.print-preview-paper[data-start-hour="20"] .time-slot:nth-child(-n+20),
.print-preview-paper[data-start-hour="21"] .time-slot:nth-child(-n+21),
.print-preview-paper[data-start-hour="22"] .time-slot:nth-child(-n+22),
.print-preview-paper[data-start-hour="23"] .time-slot:nth-child(-n+23) { 
    display: none !important; 
}

/* Hide hours after end hour (1-24) */
.print-preview-paper[data-end-hour="1"] .time-slot:nth-child(n+2),
.print-preview-paper[data-end-hour="2"] .time-slot:nth-child(n+3),
.print-preview-paper[data-end-hour="3"] .time-slot:nth-child(n+4),
.print-preview-paper[data-end-hour="4"] .time-slot:nth-child(n+5),
.print-preview-paper[data-end-hour="5"] .time-slot:nth-child(n+6),
.print-preview-paper[data-end-hour="6"] .time-slot:nth-child(n+7),
.print-preview-paper[data-end-hour="7"] .time-slot:nth-child(n+8),
.print-preview-paper[data-end-hour="8"] .time-slot:nth-child(n+9),
.print-preview-paper[data-end-hour="9"] .time-slot:nth-child(n+10),
.print-preview-paper[data-end-hour="10"] .time-slot:nth-child(n+11),
.print-preview-paper[data-end-hour="11"] .time-slot:nth-child(n+12),
.print-preview-paper[data-end-hour="12"] .time-slot:nth-child(n+13),
.print-preview-paper[data-end-hour="13"] .time-slot:nth-child(n+14),
.print-preview-paper[data-end-hour="14"] .time-slot:nth-child(n+15),
.print-preview-paper[data-end-hour="15"] .time-slot:nth-child(n+16),
.print-preview-paper[data-end-hour="16"] .time-slot:nth-child(n+17),
.print-preview-paper[data-end-hour="17"] .time-slot:nth-child(n+18),
.print-preview-paper[data-end-hour="18"] .time-slot:nth-child(n+19),
.print-preview-paper[data-end-hour="19"] .time-slot:nth-child(n+20),
.print-preview-paper[data-end-hour="20"] .time-slot:nth-child(n+21),
.print-preview-paper[data-end-hour="21"] .time-slot:nth-child(n+22),
.print-preview-paper[data-end-hour="22"] .time-slot:nth-child(n+23),
.print-preview-paper[data-end-hour="23"] .time-slot:nth-child(n+24) { 
    display: none !important; 
}

/* Ensure the visible hours fit properly */
.print-preview-paper .week-view-container {
    height: auto !important;
    overflow: visible !important;
}

.print-preview-paper .week-content {
    height: auto !important;
    overflow: visible !important;
}

.print-preview-paper .time-grid {
    height: auto !important;
    overflow: visible !important;
}

/* Dynamic time slot heights based on calculated base unit */
.print-preview-paper .time-slot {
    height: calc(var(--print-pixels-per-hour) * 1px) !important;
    min-height: calc(var(--print-pixels-per-hour) * 1px) !important;
    max-height: calc(var(--print-pixels-per-hour) * 1px) !important;
    border-bottom: 1px solid var(--border-color, #ddd) !important;
    overflow: visible !important;
}

/* Dynamic time label heights - should match time slots */
.print-preview-paper .time-label {
    height: calc(var(--print-pixels-per-hour) * 1px) !important;
    min-height: calc(var(--print-pixels-per-hour) * 1px) !important;
    max-height: calc(var(--print-pixels-per-hour) * 1px) !important;
}

/* Fixed week header height for print - smaller to maximize content */
.print-preview-paper .week-day-header {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0.25rem !important; /* Reduce padding to fit content */
}

.print-preview-paper .weekday-name {
    font-size: 0.75rem !important; /* Slightly smaller font */
    margin-bottom: 0.125rem !important;
}

.print-preview-paper .week-day-header .day-number {
    font-size: 1.25rem !important; /* Slightly smaller day number */
}

/* 15-minute and 30-minute modes use the same calculated height */
.print-preview-paper .time-slot.quarter-mode {
    height: calc(var(--print-pixels-per-hour) * 1px) !important;
    min-height: calc(var(--print-pixels-per-hour) * 1px) !important;
    max-height: calc(var(--print-pixels-per-hour) * 1px) !important;
}

/* Sub-hour time slot styling - use dynamic base unit */
.print-preview-paper .time-slot-half {
    height: calc(var(--print-base-unit) * 1px) !important;
    min-height: calc(var(--print-base-unit) * 1px) !important;
    max-height: calc(var(--print-base-unit) * 1px) !important;
    border-bottom: 1px dotted var(--border-color-light, #ddd) !important;
    overflow: visible !important;
}

.print-preview-paper .time-slot-half:last-child {
    border-bottom: none !important;
}

.print-preview-paper .time-slot-quarter {
    height: calc(var(--print-base-unit) * 1px) !important;
    min-height: calc(var(--print-base-unit) * 1px) !important;
    max-height: calc(var(--print-base-unit) * 1px) !important;
    border-bottom: 1px dotted var(--border-color-lighter, #eee) !important;
    overflow: visible !important;
}

.print-preview-paper .time-slot-quarter:last-child {
    border-bottom: none !important;
}

/* Debug styles removed */

/* Use data attributes for precise hour targeting */
/* Hide hours before start hour - both time slots AND time labels */
.print-preview-paper[data-start-hour="1"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="1"] .time-label[data-hour="0"] { display: none !important; }

.print-preview-paper[data-start-hour="2"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="2"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="2"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="2"] .time-label[data-hour="1"] { display: none !important; }

.print-preview-paper[data-start-hour="3"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="3"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="3"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="3"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="3"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="3"] .time-label[data-hour="2"] { display: none !important; }

.print-preview-paper[data-start-hour="4"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="4"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="4"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="4"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="4"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="4"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="4"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="4"] .time-label[data-hour="3"] { display: none !important; }

.print-preview-paper[data-start-hour="5"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="5"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="5"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="5"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="5"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="5"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="5"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="5"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="5"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="5"] .time-label[data-hour="4"] { display: none !important; }

.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="6"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="6"] .time-label[data-hour="5"] { display: none !important; }

.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="6"] { display: none !important; }

.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="7"] { display: none !important; }

.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="8"] { display: none !important; }

.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="9"] { display: none !important; }

/* Continue for remaining start hours 11-23 with similar patterns */
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="11"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="11"] .time-label[data-hour="10"] { display: none !important; }

.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="12"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="12"] .time-label[data-hour="11"] { display: none !important; }

.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="13"] .time-label[data-hour="12"] { display: none !important; }

.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="14"] .time-label[data-hour="13"] { display: none !important; }

.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="15"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="15"] .time-label[data-hour="14"] { display: none !important; }

.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="16"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="16"] .time-label[data-hour="15"] { display: none !important; }

.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="17"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="17"] .time-label[data-hour="16"] { display: none !important; }

.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="18"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="18"] .time-label[data-hour="17"] { display: none !important; }

.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="19"] .time-slot[data-hour="18"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="17"],
.print-preview-paper[data-start-hour="19"] .time-label[data-hour="18"] { display: none !important; }

.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="18"],
.print-preview-paper[data-start-hour="20"] .time-slot[data-hour="19"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="17"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="18"],
.print-preview-paper[data-start-hour="20"] .time-label[data-hour="19"] { display: none !important; }

.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="18"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="19"],
.print-preview-paper[data-start-hour="21"] .time-slot[data-hour="20"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="17"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="18"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="19"],
.print-preview-paper[data-start-hour="21"] .time-label[data-hour="20"] { display: none !important; }

.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="18"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="19"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="20"],
.print-preview-paper[data-start-hour="22"] .time-slot[data-hour="21"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="17"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="18"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="19"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="20"],
.print-preview-paper[data-start-hour="22"] .time-label[data-hour="21"] { display: none !important; }

.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="0"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="1"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="2"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="3"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="4"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="5"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="10"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="11"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="12"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="13"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="14"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="15"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="16"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="17"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="18"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="19"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="20"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="21"],
.print-preview-paper[data-start-hour="23"] .time-slot[data-hour="22"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="0"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="1"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="2"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="3"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="4"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="5"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="6"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="7"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="8"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="9"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="10"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="11"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="12"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="13"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="14"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="15"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="16"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="17"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="18"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="19"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="20"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="21"],
.print-preview-paper[data-start-hour="23"] .time-label[data-hour="22"] { display: none !important; }

/* Complete missing start hours 7, 8, 9, 10, 11, 12 */
.print-preview-paper[data-start-hour="7"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="7"] .time-slot[data-hour="6"],
.print-preview-paper[data-start-hour="7"] .time-label[data-hour="0"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="1"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="2"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="3"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="4"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="5"], .print-preview-paper[data-start-hour="7"] .time-label[data-hour="6"] { display: none !important; }

.print-preview-paper[data-start-hour="8"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="6"], .print-preview-paper[data-start-hour="8"] .time-slot[data-hour="7"],
.print-preview-paper[data-start-hour="8"] .time-label[data-hour="0"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="1"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="2"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="3"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="4"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="5"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="6"], .print-preview-paper[data-start-hour="8"] .time-label[data-hour="7"] { display: none !important; }

.print-preview-paper[data-start-hour="9"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="6"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="7"], .print-preview-paper[data-start-hour="9"] .time-slot[data-hour="8"],
.print-preview-paper[data-start-hour="9"] .time-label[data-hour="0"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="1"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="2"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="3"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="4"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="5"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="6"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="7"], .print-preview-paper[data-start-hour="9"] .time-label[data-hour="8"] { display: none !important; }

.print-preview-paper[data-start-hour="10"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="6"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="7"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="8"], .print-preview-paper[data-start-hour="10"] .time-slot[data-hour="9"],
.print-preview-paper[data-start-hour="10"] .time-label[data-hour="0"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="1"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="2"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="3"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="4"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="5"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="6"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="7"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="8"], .print-preview-paper[data-start-hour="10"] .time-label[data-hour="9"] { display: none !important; }

/* Add remaining start hours (13-23) using a more compact format */
.print-preview-paper[data-start-hour="13"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="6"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="7"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="8"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="9"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="10"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="11"], .print-preview-paper[data-start-hour="13"] .time-slot[data-hour="12"] { display: none !important; }

.print-preview-paper[data-start-hour="14"] .time-slot[data-hour="0"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="1"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="2"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="3"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="4"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="5"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="6"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="7"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="8"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="9"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="10"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="11"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="12"], .print-preview-paper[data-start-hour="14"] .time-slot[data-hour="13"] { display: none !important; }

/* Hide hours after end hour - both time slots AND time labels */
/* End hour rules for common times */
.print-preview-paper[data-end-hour="8"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="8"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="8"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="8"] .time-label[data-hour="23"] { display: none !important; }

/* Add missing end hour rules */
.print-preview-paper[data-end-hour="17"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="17"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="17"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="17"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="19"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="19"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="19"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="19"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="19"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="19"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="19"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="19"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="19"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="19"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="20"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="20"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="20"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="20"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="20"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="20"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="20"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="20"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="18"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="18"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="18"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="18"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="18"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="18"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="18"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="18"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="18"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="18"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="18"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="18"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="21"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="21"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="21"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="21"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="21"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="21"] .time-label[data-hour="23"] { display: none !important; }

/* Add more end hour rules for hours 9-16, 23, 24 */
.print-preview-paper[data-end-hour="9"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="9"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="9"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="9"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="12"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="12"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="12"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="12"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="22"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="22"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="22"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="22"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="23"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="23"] .time-label[data-hour="23"] { display: none !important; }

/* Complete all missing end hour rules */
.print-preview-paper[data-end-hour="1"] .time-slot[data-hour="1"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="2"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="3"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="4"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="5"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="1"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="1"] .time-label[data-hour="1"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="2"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="3"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="4"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="5"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="1"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="2"] .time-slot[data-hour="2"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="3"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="4"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="5"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="2"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="2"] .time-label[data-hour="2"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="3"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="4"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="5"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="2"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="3"] .time-slot[data-hour="3"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="4"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="5"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="3"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="3"] .time-label[data-hour="3"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="4"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="5"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="3"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="4"] .time-slot[data-hour="4"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="5"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="4"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="4"] .time-label[data-hour="4"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="5"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="4"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="5"] .time-slot[data-hour="5"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="5"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="5"] .time-label[data-hour="5"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="5"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="6"] .time-slot[data-hour="6"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="6"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="6"] .time-label[data-hour="6"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="6"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="7"] .time-slot[data-hour="7"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="8"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="9"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="7"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="7"] .time-label[data-hour="7"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="8"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="9"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="7"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="10"] .time-slot[data-hour="10"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="10"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="10"] .time-label[data-hour="10"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="10"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="11"] .time-slot[data-hour="11"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="12"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="11"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="11"] .time-label[data-hour="11"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="12"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="11"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="13"] .time-slot[data-hour="13"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="13"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="13"] .time-label[data-hour="13"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="13"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="14"] .time-slot[data-hour="14"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="14"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="14"] .time-label[data-hour="14"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="14"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="15"] .time-slot[data-hour="15"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="15"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="15"] .time-label[data-hour="15"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="15"] .time-label[data-hour="23"] { display: none !important; }

.print-preview-paper[data-end-hour="16"] .time-slot[data-hour="16"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="17"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="18"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="19"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="20"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="21"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="22"], .print-preview-paper[data-end-hour="16"] .time-slot[data-hour="23"],
.print-preview-paper[data-end-hour="16"] .time-label[data-hour="16"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="17"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="18"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="19"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="20"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="21"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="22"], .print-preview-paper[data-end-hour="16"] .time-label[data-hour="23"] { display: none !important; }

/* End hour 24 (midnight next day) hides no hours since it includes the full day */
.print-preview-paper[data-end-hour="24"] { /* Shows all hours - no additional hiding needed */ }

/* Hide events that are completely outside the visible time range */
/* Clip events outside the visible hour range using overflow: hidden */

/* Allow events to be repositioned without being clipped */
.print-preview-paper[data-start-hour][data-end-hour] .week-day-column {
    overflow: visible !important;
    position: relative !important;
}

/* For events that start before the visible range but extend into it, we need to clip the top */
/* This is complex to do with pure CSS, so the overflow: hidden on containers should handle most cases */

/* Dynamic height adjustments for time-labels and week-days-grid based on visible hours */
/* Formula: (pixels_per_hour × visible_hours) + 90px extra */
/* 30-minute mode: 60px per hour, 15-minute mode: 120px per hour */

/* Test: Force a specific height override for any data-start-hour/data-end-hour combination */
.print-preview-paper[data-start-hour][data-end-hour] .time-labels,
.print-preview-paper[data-start-hour][data-end-hour] .week-days-grid,
.print-preview-paper[data-start-hour][data-end-hour] .time-grid,
.print-preview-paper[data-start-hour][data-end-hour] .week-day-column {
    min-height: 400px !important;
}

/* Height adjustments based on visible hours = end_hour - start_hour */
/* We'll use CSS custom properties to calculate this dynamically, but for now use specific combinations */

/* Common hour ranges - 30-minute mode (60px per hour + 90px extra) */

/* 1 hour visible */
.print-preview-paper[data-start-hour="0"][data-end-hour="1"] .time-labels,
.print-preview-paper[data-start-hour="0"][data-end-hour="1"] .week-days-grid,
.print-preview-paper[data-start-hour="0"][data-end-hour="1"] .time-grid,
.print-preview-paper[data-start-hour="0"][data-end-hour="1"] .week-day-column,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"] .time-labels,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"] .week-days-grid,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"] .time-grid,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"] .week-day-column,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"] .time-labels,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"] .week-days-grid,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"] .time-grid,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"] .week-day-column { min-height: 150px !important; }

/* 8 hours visible (common work day) - target all height elements */
.print-preview-paper[data-start-hour="9"][data-end-hour="17"] .time-labels,
.print-preview-paper[data-start-hour="9"][data-end-hour="17"] .week-days-grid,
.print-preview-paper[data-start-hour="9"][data-end-hour="17"] .time-grid,
.print-preview-paper[data-start-hour="9"][data-end-hour="17"] .week-day-column,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"] .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"] .week-days-grid,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"] .time-grid,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"] .week-day-column,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"] .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"] .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"] .time-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"] .week-day-column { min-height: 570px !important; }

/* 10 hours visible */
.print-preview-paper[data-start-hour="8"][data-end-hour="18"] .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="18"] .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="17"] .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="17"] .week-days-grid,
.print-preview-paper[data-start-hour="9"][data-end-hour="19"] .time-labels,
.print-preview-paper[data-start-hour="9"][data-end-hour="19"] .week-days-grid { min-height: 690px !important; }

/* 12 hours visible */
.print-preview-paper[data-start-hour="6"][data-end-hour="18"] .time-labels,
.print-preview-paper[data-start-hour="6"][data-end-hour="18"] .week-days-grid,
.print-preview-paper[data-start-hour="8"][data-end-hour="20"] .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="20"] .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"] .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"] .week-days-grid { min-height: 810px !important; }

/* 15-minute mode (120px per hour + 90px extra) */

/* 1 hour visible */
.print-preview-paper[data-start-hour="0"][data-end-hour="1"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="0"][data-end-hour="1"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="6"][data-end-hour="7"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="11"][data-end-hour="12"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 210px !important; }

/* 8 hours visible (common work day) */
.print-preview-paper[data-start-hour="9"][data-end-hour="17"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="9"][data-end-hour="17"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="16"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="15"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 1050px !important; }

/* 10 hours visible */
.print-preview-paper[data-start-hour="8"][data-end-hour="18"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="18"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="17"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="17"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="9"][data-end-hour="19"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="9"][data-end-hour="19"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 1290px !important; }

/* 12 hours visible */
.print-preview-paper[data-start-hour="6"][data-end-hour="18"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="6"][data-end-hour="18"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="8"][data-end-hour="20"]:has(.time-slot.quarter-mode) .week-days-grid,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .time-labels,
.print-preview-paper[data-start-hour="7"][data-end-hour="19"]:has(.time-slot.quarter-mode) .week-days-grid { min-height: 1530px !important; }

/* Print Page Setup - Force landscape orientation and fit to page */
@page {
    size: letter landscape;
    margin: 0.25in;
}

/* Print Media Rules - Show only the print-preview-copy when printing */
@media print {
    html {
        print-color-adjust: exact; /* Preserve colors when printing */
        -webkit-print-color-adjust: exact;
    }
    
    /* Hide all top-level app content */
    .app {
        display: none !important;
    }
    
    /* Show only the print copy div */
    #print-preview-copy {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        /* width: 960px !important; */
        /* height: 720px !important; */
        aspect-ratio: 1.3125 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* Properties to help browsers scale to fit page */
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
        page-break-inside: avoid;
        orphans: 1;
        widows: 1;
    }
    
    /* Ensure print content uses the full page */
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Apply print customization styles to the actual printed content */
    #print-preview-copy .calendar-header {
        padding: var(--print-header-padding, 12px) !important;
    }

    #print-preview-copy .calendar-header h2,
    #print-preview-copy .month-year {
        font-size: var(--print-header-font, 1.8rem) !important;
    }

    #print-preview-copy .weekday-header {
        font-size: var(--print-weekday-font, 0.9rem) !important;
        padding: var(--print-weekday-padding, 8px) !important;
    }

    #print-preview-copy .calendar-day {
        padding: var(--print-day-cell-padding, 4px) !important;
    }

    #print-preview-copy .day-number {
        font-size: var(--print-day-number-font, 0.8rem) !important;
    }

    #print-preview-copy .event-box {
        font-size: var(--print-event-font, 0.6rem) !important;
        padding: var(--print-event-box-padding, 1px) !important;
    }
}
