:root {
            --header-height: 60px;
            --cell-height: 40px;
            --cell-width: 100px;
            --first-col-width: 200px;
            --border-color: #ddd;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: Arial, sans-serif;
            color: #333;
        }

        .booking-container {
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .controls {
            padding: 10px;
            background-color: #f5f5f5;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .calendar-container {
            width: 100%;
            overflow-x: auto;
            flex: 1;
            position: relative;
        }

        .calendar-header {
            display: flex;
            position: sticky;
            top: 0;
            z-index: 10;
            background-color: #f5f5f5;
            border-bottom: 2px solid var(--border-color);
            height: var(--header-height);
        }

        .room-header {
            min-width: var(--first-col-width);
            height: var(--header-height);
            border-right: 1px solid var(--border-color);
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            position: sticky;
            left: 0;
            z-index: 15;
            background-color: #f5f5f5;
        }

        .day-cell {
            min-width: calc(var(--cell-width) * 2);
            height: var(--header-height);
            border-right: 1px solid var(--border-color);
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .day-name {
            font-weight: bold;
        }

        .day-date {
            font-size: 0.8em;
            color: #666;
        }

        .calendar-body {
            display: flex;
            flex-direction: column;
        }

        .group-header {
            width: 100%;
            background-color: #e9e9e9;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            display: flex;
        }

        .group-title-cell {
            min-width: var(--first-col-width);
            height: var(--cell-height);
            border-right: 1px solid var(--border-color);
            font-weight: bold;
            display: flex;
            align-items: center;
            padding: 0 10px;
            position: sticky;
            left: 0;
            background-color: #e9e9e9;
            z-index: 5;
        }

        .group-title-cell .toggle-icon {
            margin-right: 10px;
        }

        .group-days {
            display: flex;
            flex: 1;
        }

        .group-day {
            min-width: calc(var(--cell-width) * 2);
            height: var(--cell-height);
            border-right: 1px solid var(--border-color);
            position: relative;
        }

        .room-row {
            width: 100%;
            border-bottom: 1px solid var(--border-color);
            display: flex;
        }

        .room-name-cell {
            min-width: var(--first-col-width);
            height: var(--cell-height);
            border-right: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 10px;
            position: sticky;
            left: 0;
            background-color: white;
            z-index: 5;
        }

        .room-days {
            display: flex;
            flex: 1;
        }

        .room-day {
            min-width: calc(var(--cell-width) * 2);
            height: var(--cell-height);
            border-right: 1px solid var(--border-color);
            display: flex;
        }

        .departure-cell, .arrival-cell {
            width: var(--cell-width);
            height: var(--cell-height);
            position: relative;
        }

        .departure-cell {
            border-right: 1px dashed var(--border-color);
        }

        .booking-bar {
            position: absolute;
            height: 80%;
            top: 10%;
            z-index: 2;
            border-radius: 4px;
        }

        .collapsed {
            display: none;
        }

        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1.2em;
        }