/*
 * AWCF Overzicht Agenda Per Ruimte - Complete Styling
 * Grid-based 15-minute time blocks with synchronized Slick sliders
 * Using modern CSS nesting with media queries inside selectors
 */

:root {
    --time-column-width: 120px;
}

body.page-id-11875 {
    background-color: #FFFBF1;
}

.agenda-header {
    max-width: 100%;
    margin: 0 auto 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;

    & .agenda-title-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 1rem;

        & .agenda-main-title {
            font-size: 2rem;
            font-weight: normal;
            margin: 0;

            & strong {
                font-weight: bold;
            }
        }

        & .agenda-top-controls {
            display: flex;
            align-items: center;
            gap: 1rem;

            & .tag-filter {
                display: flex;
                align-items: center;
                gap: 0.5rem;

                & label {
                    font-weight: bold;
                }

                & select {
                    padding: 0.5rem;
                    border-radius: 8px;
                    border: 1px solid #ccc;
                    background-color: #fff;
                    cursor: pointer;
                    line-height: 1em;
                    font-size: 1em;
                    height: 40px;
                    box-sizing: border-box;

                    @media (max-width: 767px) {
                        padding: 5px;
                        height: 34px;
                    }

                    &:hover {
                        border-color: #999;
                    }
                }
            }

            & .download-pdf-button {
                padding: 0.5rem 1rem;
                border-radius: 8px;
                border: 1px solid #E27050;
                background-color: #F29949;
                color: #000000;
                cursor: pointer;
                line-height: 1em;
                font-size: 1em;
                font-weight: bold;
                transition: background-color 0.2s ease;
                height: 40px;
                box-sizing: border-box;

                @media (max-width: 767px) {
                    height: 34px;
                }

                &:hover,
                &:focus,
                &:active {
                    background-color: #E27050;
                    color: #ffffff;
                }
            }
        }
    }

    & .agenda-meta-bar {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        @media (max-width: 767px) {
            gap: 1rem;
        }

        & .agenda-date {
            font-size: 1rem;

            & strong {
                margin-right: 0.5rem;
            }

            & .date-selector {
                /* Reset button styles */
                appearance: none;
                background: none;
                border: none;
                padding: 0;
                margin: 0;
                font: inherit;
                color: inherit;
                cursor: pointer;
                text-align: left;
                line-height: 1em;

                /* Mimic select styles */
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem;
                border-radius: 8px;
                border: 1px solid #ccc;
                background-color: #fff;
                transition: border-color 0.2s ease;
                margin-left: 0.5rem;

                @media (max-width: 767px) {
                    padding: 5px 10px;
                    font-size: 1em;
                    height: 34px;
                }

                &:hover {
                    border-color: #999;
                }

                & svg {
                    opacity: 0.7;
                    flex-shrink: 0;
                }
            }
        }

        & .agenda-location {
            font-size: 1rem;

            & strong {
                margin-right: 0.5rem;
            }
        }
    }
}

.planning-item {
    transition: opacity 0.3s ease-in-out;
}

.awcf-overzicht-agenda-per-ruimte {
    display: block;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;

    /* =================================
       NAVIGATION CONTROLS
    ================================= */
    .agenda-controls {
        display: flex;
        z-index: 10;
        width: 120px;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        gap: 15px;

        @media (max-width: 768px) {
            width: 80px;
            gap: 14px;
            margin-top: 5px;
        }

        .agenda-prev,
        .agenda-next {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            width: 52px;
            height: 52px;
            background: #5FAEED;
            border: 1px solid #E27050;
            color: #000000;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;

            &:hover {
                background: #F29949;
            }

            &.disabled {
                background: #cdd0d6;
                border-color: #9ca3af;
                cursor: not-allowed;
            }

            span {
                font-size: 1.8rem;
                font-weight: bold;
                line-height: 1;
                display: inline-block;
                margin-top: -4px;
            }

            @media (max-width: 768px) {
                width: 36px;
                height: 36px;

                span {
                    font-size: 1.6rem;
                }
            }

            @media (max-width: 480px) {
                width: 32px;
                height: 32px;

                span {
                    font-size: 1.6em;
                    line-height: 1em;
                    display: flex;
                    position: relative;
                    align-items: center;
                    justify-content: center;
                    flex-direction: row;
                    height: auto;
                    max-height: 26px;
                    margin-top: -3px;
                    width: 12px;
                }
            }
        }
    }

    /* =================================
       ROOM HEADERS
    ================================= */
    .room-headers {
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        width: 100%;

        @media (max-width: 768px) {
            margin-bottom: 1rem;
            gap: 0 !important;
        }

        @media (max-width: 480px) {
            gap: 0.25rem;
            margin-bottom: 0.5rem;
        }

        .room-header-spacer {
            @media (max-width: 768px) {
                width: 80px;
            }

            @media (max-width: 480px) {
                display: block;
                width: 60px;
            }
        }

        .room-slider-container {
            overflow: hidden;
            flex: 1;
            width: 100%;
            max-width: none;

            @media (max-width: 768px) {
                max-width: calc(100vw - 100px - 1rem) !important;
                padding: 0 12px 0 16px;
            }

            @media (max-width: 480px) {
                flex: 1;
                max-width: none !important;
                margin: 0;
                padding: 0 12px 0 15px;
                overflow: hidden;
            }

            .room-header-slider {
                width: 100%;

                .room-header-slide {
                    background-color: #5FAEED;
                    border: 1px solid #E27050;
                    color: #000000;
                    border-radius: 8px;
                    text-align: center;
                    margin: 0 8px;
                    padding: 0;
                    box-sizing: border-box !important;
                    height: 52px !important;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    line-height: 1em;

                    &:nth-child(3n+1) {
                        background-color: #5FAEED;
                        border: 1px solid #E27050;
                    }

                    &:nth-child(3n+2) {
                        background-color: #8EDEC6;
                        border: 1px solid #E27050;
                    }

                    &:nth-child(3n) {
                        background-color: #F29949;
                        border: 1px solid #E27050;
                    }

                    @media (max-width: 480px) {
                        margin: 0 !important;
                        padding: 0.75rem !important;
                        width: 100% !important;
                        max-width: none !important;
                        box-sizing: border-box;
                    }

                    .room-title {
                        margin: 0;
                        font-size: 28px;
                        line-height: 1em;
                        font-weight: bold;

                        @media (max-width: 480px) {
                            font-size: 1.5rem !important;
                        }
                    }

                    .room-date {
                        display: block;
                        font-size: 0.85rem;
                        opacity: 0.9;
                        margin-bottom: 0.25rem;
                    }

                    .room-location {
                        display: block;
                        font-size: 0.8rem;
                        opacity: 0.8;
                    }
                }
            }
        }
    }

    /* =================================
       SLIDER WIDTH FIXES
    ================================= */
    .room-header-slider .slick-slide,
    .room-content-slider .slick-slide {
        max-width: none !important;
    }

    .room-slider-container {
        width: 100%;
        max-width: none;

        @media (max-width: 768px) {
            max-width: calc(100vw - 100px - 1rem) !important;
        }

        @media (max-width: 480px) {
            max-width: none !important;
            width: 100% !important;
            margin: 0;
            overflow: hidden;
        }
    }

    /* =================================
       MAIN CONTAINER
    ================================= */
    .agenda-container {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        min-height: 600px;
        max-width: 1200px;

        @media (max-width: 1024px) {
            grid-template-columns: 100px 1fr;
        }

        @media (max-width: 768px) {
            grid-template-columns: 80px 1fr !important;
            gap: 0.5rem !important;
            max-width: 100% !important;
            padding: 0 0.5rem;
        }

        @media (max-width: 480px) {
            grid-template-columns: 60px 1fr;
            padding: 0;
            gap: 0.25rem;
        }
    }

    /* =================================
       LEFT COLUMN - TIME LABELS
    ================================= */
    .time-column {
        display: flex;
        flex-direction: column;
        z-index: 1;

        @media (max-width: 480px) {
            display: flex;
        }

        .time-break {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 0;
            background: transparent;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            text-align: center;
            font-weight: 600;
            color: #000000;
            font-size: 0.85rem;
            height: 53px;
        }

        .time-block {
            margin-bottom: 0.5rem;

            @media (max-width: 480px) {
                font-size: 0.7rem;
                margin-bottom: 0.5rem;
            }

            .time-labels-static {
                height: 100%;
                display: flex;
                flex-direction: column;

                .time-slot {
                    flex-shrink: 0;
                    display: flex;
                    flex-direction: column;
                    position: relative;
                    background: transparent;
                    flex: 1;

                    &:not([data-full-hour]) {
                        .time-label {
                            color: transparent;
                            opacity: 0;
                        }
                    }

                    &:first-child {
                        border-top-left-radius: 6px;
                        border-top-right-radius: 6px;
                    }

                    &:last-child {
                        border-bottom-left-radius: 6px;
                        border-bottom-right-radius: 6px;
                        border-bottom: none;
                    }

                    @media (max-width: 480px) {
                        padding: 2px 4px;
                        height: auto;
                        min-height: 40px;
                    }
                }

                .time-label {
                    flex: 1;
                    display: flex;
                    align-items: flex-start;
                    margin: 0;
                    padding: 5px;
                    line-height: 1em;
                    user-select: none;

                    &[data-full-hour] {
                        font-size: 32px;
                        font-weight: bold;
                        color: #000000;
                        background: transparent;

                        @media (max-width: 768px) {
                            font-size: 22px;
                            font-weight: bold;
                            color: #000000;
                            line-height: 34px;
                        }
                    }

                    @media (max-width: 1024px) {
                        font-size: 0.7rem;
                        padding: 0.2rem 0.25rem;
                    }

                    @media (max-width: 480px) {
                        font-size: 10px;
                        writing-mode: horizontal-tb;
                        text-orientation: initial;
                        line-height: 1;
                        padding: 2px 0;
                        text-align: left;
                    }
                }

                .time-line {
                    height: 2px;
                    background-color: #FFB219;
                    width: 1130px;
                    max-width: 94vw;
                    z-index: 1;
                    margin: 0;
                    flex-shrink: 0;
                    position: absolute;
                    top: -5px;
                    left: 0;

                    @media (max-width: 768px) {
                        width: calc(100vw - 66px);
                        max-width: calc(100vw - 66px);
                    }

                    @media (max-width: 480px) {
                        display: block;
                        height: 1px;
                        background-color: #FFB219;
                        width: calc(100vw - 48px);
                        max-width: calc(100vw - 48px);
                        z-index: 1;
                        margin: 0;
                        flex-shrink: 0;
                        position: absolute;
                        top: -2px;
                        left: 0;
                    }
                }
            }
        }
    }

    /* =================================
       RIGHT COLUMN - ROOM CONTENT
    ================================= */
    .content-column {
        display: flex;
        flex-direction: column;
        z-index: 2;

        @media (max-width: 480px) {
            width: 100% !important;
            padding: 0 !important;
            overflow: visible !important;
            position: relative;
        }

        .content-break {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: transparent;
            border-radius: 6px;
            margin-bottom: 0.5rem;
            text-align: center;
            font-weight: bold;
            font-size: 32px;
            line-height: 1em;
            color: #000000;
            height: 53px;
            user-select: none;

            &.ontvangst {
                padding-bottom: 0;
                margin-bottom: 0;
            }

            &.afsluiting {
                padding-top: 0;
                margin-top: -105px;
            }

            @media (max-width: 768px) {
                font-size: 22px;
            }
        }

        .content-block {
            margin-bottom: 0.5rem;
            position: relative;

            &[data-block="morning1"]::before {
                content: "Ontvangst";
                position: absolute;
                top: 20px;
                left: 50%;
                transform: translate(-50%, -50%);
                font-weight: bold;
                font-size: 32px;
                line-height: 1em;
                color: #000000;
                z-index: 10;
                pointer-events: none;
                background: transparent;
                padding: 8px 16px;
                border-radius: 6px;

                @media (max-width: 768px) {
                    top: 20px;
                    left: calc(50% - 4px);
                    font-size: 22px;
                }
            }

            @media (max-width: 480px) {
                margin-bottom: 0.5rem;
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: relative;
            }

            .room-slider-container {
                height: 100%;
                overflow: hidden;
                width: 100%;
                max-width: none;

                @media (max-width: 768px) {
                    height: 100%;
                }

                @media (max-width: 480px) {
                    width: 100% !important;
                    max-width: none !important;
                    padding: 0 !important;
                    overflow: hidden;
                    display: block !important;
                    height: 100%;
                }

                .room-content-slider {
                    height: 100%;
                    width: 100%;

                    @media (max-width: 480px) {
                        width: 100% !important;
                        display: block !important;
                        height: 100%;
                    }

                    &.slick-initialized {
                        @media (max-width: 480px) {
                            display: block !important;
                            height: 100%;
                        }

                        .slick-list {
                            @media (max-width: 480px) {
                                height: 100% !important;
                            }
                        }

                        .slick-track {
                            @media (max-width: 480px) {
                                display: flex !important;
                                height: 100% !important;
                            }
                        }

                        .slick-slide {
                            @media (max-width: 480px) {
                                width: auto !important;
                                max-width: none !important;
                                height: 100% !important;
                            }
                        }
                    }

                    .room-content-slide {
                        height: 100%;
                        margin: 0;
                        padding: 0 0.25rem;

                        @media (max-width: 768px) {
                            padding: 0 !important;
                            margin: 0 !important;
                            box-sizing: border-box;
                        }

                        @media (max-width: 480px) {
                            width: 100% !important;
                            padding: 0 0.25rem !important;
                            margin: 0 !important;
                            display: block !important;
                            height: 100%;
                        }

                        .planning-grid {
                            position: relative;
                            height: 100%;
                            background: transparent;
                            border: none;
                            overflow: visible;

                            @media (max-width: 768px) {
                                padding: 0 0.25rem;
                                box-sizing: border-box;
                            }

                            @media (max-width: 480px) {
                                padding: 0;
                                margin: 0;
                                width: 100%;
                                position: relative;
                                height: 100%;
                            }

                            .planning-item {
                                display: block !important;
                                visibility: visible !important;
                                opacity: 1;
                            }
                        }
                    }
                }
            }
        }
    }

    /* =================================
       PLANNING ITEMS
    ================================= */
    .planning-item {
        position: absolute !important;
        left: 0;
        right: 4px;
        min-height: 20px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        z-index: 1;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        opacity: 1;
        overflow: hidden;

        &[data-tag="presentaties"] {
            background-color: #E2F3DD;
            border-color: #E27050;
        }

        &[data-tag="sprekers"] {
            background-color: #E0ECFE;
            border-color: #E27050;
        }

        &[data-tag="kring"] {
            background-color: #FFC7BC;
            border-color: #E27050;
        }

        &[data-tag="panel"] {
            background-color: #FFEB90;
            border-color: #E27050;
        }

        &[data-tag="creatief"] {
            background-color: #F9D6E7;
            border-color: #E27050;
        }

        &[data-tag="algemeen"] {
            background-color: #fff9f5;
            border-color: #E27050;
        }

        @media (max-width: 1024px) {
            padding: 15px;
        }

        @media (max-width: 768px) {
            padding: 0.75rem;
            left: 0 !important;
            right: 4px !important;
            width: calc(100% - 28px) !important;
            margin: 0;
            box-sizing: border-box;
            position: absolute !important;
        }

        @media (max-width: 480px) {
            width: calc(100% - 4px) !important;
        }

        .item-content {
            display: flex;
            gap: 0.5rem;
            align-items: flex-start;
            height: 100%;
            min-height: 100%;
            width: 100%;
            position: relative;

            @media (max-width: 768px) {
                flex-direction: row;
                gap: 10px;
            }

            .item-icon {
                flex-shrink: 0;
                width: 33px;
                height: 33px;
                border-radius: 0;
                background-color: transparent;

                @media (max-width: 480px) {
                    width: 24px;
                    height: 24px;
                }

                .aw-svg-icon {
                    display: none;
                    width: 33px;
                    height: 33px;
                    object-fit: contain;

                    @media (max-width: 480px) {
                        width: 24px;
                        height: 24px;
                    }
                }

                &.icon-microfoon .aw-svg-icon.aw-svg-icon-microfoon {
                    display: block;
                }

                &.icon-sterren .aw-svg-icon.aw-svg-icon-sterren {
                    display: block;
                }

                &.icon-handje .aw-svg-icon.aw-svg-icon-handje {
                    display: block;
                }
            }

            .item-details {
                flex: 1;
                min-width: 0;

                @media (max-width: 768px) {
                    margin-top: -3px;
                }

                .item-time {
                    font-size: 0.7rem;
                    font-weight: 600;
                    color: #374151;
                    margin-bottom: 0.25rem;
                }

                .item-title {
                    font-size: 22px;
                    font-weight: bold;
                    margin: 0 0 0.25rem 0;
                    color: #000000;
                    line-height: 1em;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;

                    @media (max-width: 480px) {
                        font-size: 0.9rem;
                    }
                }

                .item-description {
                    font-size: 22px;
                    color: #000000;
                    margin: 0;
                    line-height: 1.2em;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;

                    @media (max-width: 768px) {
                        -webkit-line-clamp: 2;
                        line-clamp: 2;
                        font-size: 0.8rem;
                    }
                }

                .item-tag {
                    position: absolute;
                    bottom: -10px;
                    left: -10px;
                    display: inline-block;
                    font-size: 14px;
                    line-height: 1em;
                    padding: 6px 14px;
                    border-radius: 8px;
                    font-weight: 500;
                    margin-top: 0.25rem;
                    color: #000000;
                    border: 1px solid transparent;

                    &.tag-sprekers {
                        background-color: #B5F2DD;
                        border-color: #17C2A4;
                    }

                    &.tag-creatief {
                        background-color: #B5F2DD;
                        border-color: #17C2A4;
                    }

                    &.tag-panel {
                        background-color: #F8DAE5;
                        border-color: #EB6A6E;
                    }

                    &.tag-kring {
                        background-color: #FFE77D;
                        border-color: #FFB219;
                    }

                    &.tag-algemeen {
                        background-color: #F8DAE5;
                        border-color: #EB6A6E;
                    }

                    &.tag-presentaties {
                        background-color: #FFE77D;
                        border-color: #FFB219;
                    }

                    @media (max-width: 768px) {
                        top: -10px;
                        right: -6px;
                        left: auto;
                        bottom: auto;
                        font-size: 0.7rem !important;
                        padding: 0.25rem 0.5rem !important;
                    }
                }
            }
        }

        .item-link {
            position: absolute;
            bottom: 5px;
            right: 5px;
            font-size: 0.65rem;
            color: #ffffff;
            background: #000000;
            text-decoration: none;
            font-weight: 500;
            border: 1px solid black;
            border-radius: 8px;
            padding: 4px 8px;
            transition: all 0.2s ease;

            &:hover {
                color: #000000;
                background: #ffffff;
            }
        }

        &.very-short-item {
            padding: 10px;

            .item-description {
                display: none !important;
            }

            .item-tag {
                display: none !important;
            }

            .item-time {
                display: none !important;
            }
        }

        &.short-item {
            .item-description {
                font-size: 1em !important;
                line-height: 1.1em !important;
                display: inline-block !important;
                max-height: 20px !important;
                overflow: hidden !important;
            }
        }

        &.long-item {
            .item-details .item-title {
                white-space: normal;
                -webkit-line-clamp: 2;
                line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
            }
        }
    }

    /* =================================
       SLICK SLIDER OVERRIDES
    ================================= */
    .slick-slider {
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;

        @media (max-width: 480px) {
            overflow: hidden !important;
        }

        .slick-list {
            overflow: hidden;
            height: 100% !important;
            width: 100% !important;

            @media (max-width: 768px) {
                margin: 0;
                padding: 0;
                overflow: hidden !important;
                width: 100% !important;
            }
        }

        .slick-track {
            display: flex;
            align-items: stretch;
            justify-content: flex-start;
            height: 100% !important;
            margin: 0;

            @media (max-width: 480px) {
                display: flex !important;
                width: auto !important;
            }
        }

        .slick-slide {
            height: 100% !important;
            box-sizing: border-box !important;

            @media (max-width: 480px) {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                flex-shrink: 0;
            }
        }

        .slick-prev,
        .slick-next {
            display: none !important;
        }

        .slick-dots {
            display: none !important;
        }
    }

    /* =================================
       MOBILE-SPECIFIC STYLES
    ================================= */
    .item-time.mobile-only {
        display: none;

        @media (max-width: 768px) {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.25rem;
            background: rgba(255, 255, 255, 0.9);
            padding: 0.125rem 0.25rem;
            border-radius: 3px;
            align-self: flex-start;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            width: auto;
            max-width: 100%;
        }

        @media (max-width: 480px) {
            font-size: 0.7rem;
        }
    }

    &.mobile-optimized {
        .slick-slider .slick-track {
            transition: none !important;
        }
    }
}

@media print {
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: white !important;
    }

    /* Hide everything except our print container */
    body>*:not(.print-container) {
        display: none !important;
    }

    .print-container {
        display: block !important;
    }

    /* Style each room's cloned agenda for printing */
    .print-room-instance {
        page-break-after: always;
        overflow: visible !important;
        padding: 1rem;
    }

    .print-room-instance:last-child {
        page-break-after: auto;
    }

    .print-room-instance .awcf-overzicht-agenda-per-ruimte {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Hide unnecessary controls in print */
    .print-room-instance .agenda-controls,
    .print-room-instance .agenda-top-controls {
        display: none !important;
    }

    .print-room-instance .room-headers {
        margin-bottom: 1rem;
    }

    /* Ensure the single room header is styled correctly */
    .print-room-instance .room-header-slide {
        width: 100% !important;
        margin: 0 !important;
        height: auto !important;
    }

    /* Ensure the agenda grid displays correctly */
    .print-room-instance .agenda-container {
        display: grid !important;
        grid-template-columns: 100px 1fr !important;
        gap: 0.5rem !important;
    }

    .print-room-instance .time-block,
    .print-room-instance .content-block {
        height: auto !important;
        /* Let content define height */
    }

    .print-room-instance .planning-grid {
        position: relative !important;
        height: 100% !important;
    }

    .print-room-instance .planning-item {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Additional print optimizations for PDF generation */
    .agenda-header .agenda-top-controls {
        display: none !important;
    }

    .room-headers .agenda-controls {
        display: none !important;
    }

    /* Ensure proper page breaks for multiple rooms */
    .awcf-overzicht-agenda-per-ruimte {
        page-break-after: always;
    }

    .awcf-overzicht-agenda-per-ruimte:last-child {
        page-break-after: auto;
    }

    /* Optimize text and colors for printing */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Make sure tag colors are preserved */
    .planning-item[data-tag="presentaties"],
    .item-tag.tag-presentaties {
        background-color: #E2F3DD !important;
        border-color: #E27050 !important;
    }

    .planning-item[data-tag="sprekers"],
    .item-tag.tag-sprekers {
        background-color: #E0ECFE !important;
        border-color: #E27050 !important;
    }

    .planning-item[data-tag="kring"],
    .item-tag.tag-kring {
        background-color: #FFC7BC !important;
        border-color: #E27050 !important;
    }

    .planning-item[data-tag="panel"],
    .item-tag.tag-panel {
        background-color: #F0E6FF !important;
        border-color: #E27050 !important;
    }

    .planning-item[data-tag="creatief"],
    .item-tag.tag-creatief {
        background-color: #FFE6D9 !important;
        border-color: #E27050 !important;
    }

    .planning-item[data-tag="algemeen"],
    .item-tag.tag-algemeen {
        background-color: #F5F5F5 !important;
        border-color: #E27050 !important;
    }

    /* Ensure room headers maintain colors */
    .room-header-slide:nth-child(3n+1) {
        background-color: #5FAEED !important;
        border-color: #E27050 !important;
    }

    .room-header-slide:nth-child(3n+2) {
        background-color: #8EDEC6 !important;
        border-color: #E27050 !important;
    }

    .room-header-slide:nth-child(3n) {
        background-color: #F29949 !important;
        border-color: #E27050 !important;
    }
}