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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 10px;
    min-height: 100vh;
}

.container {
    max-width: 98%;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    overflow: hidden;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 12px 20px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 1.6em;
    margin-bottom: 5px;
}

.header .metadata {
    font-size: 0.75em;
    opacity: 0.8;
    margin-top: 5px;
}

.header-nav {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-link,
.header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 600;
    transition: background-color 0.15s, border-color 0.15s;
}

.header-nav-btn {
    cursor: pointer;
    font-family: inherit;
}

.header-nav-link:hover,
.header-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
}

.edit-mode-banner {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    max-width: 98%;
    margin: 0 auto;
    padding: 8px 20px 14px;
    background:
        repeating-linear-gradient(-45deg, #3a2a00, #3a2a00 8px, #f0ad00 8px, #f0ad00 16px) bottom / 100% 6px no-repeat,
        #f0ad00;
    color: #3a2a00;
    font-size: 0.9em;
    border: 1px solid #c98f00;
    border-bottom: none;
}

.edit-mode-banner-exit {
    padding: 4px 14px;
    background: #2c3e50;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.edit-mode-banner-exit:hover {
    background: #1a252f;
}

.edit-mode-banner-exit:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

.header-nav-link:focus-visible,
.header-nav-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Hints at the edit-mode colour before switching */
body[data-view-mode="true"] .header-nav-link:hover {
    border-color: #f0ad00;
}

body[data-view-mode="true"] .header-nav-link:focus-visible {
    border-color: #f0ad00;
    outline-color: #f0ad00;
}

@media screen {
    html:not(.printing) body[data-view-mode="false"] .header {
        background: #8a4b00;
    }
}

/* Keeps focused elements clear of the sticky edit-mode banner */
html:has(.edit-mode-banner) {
    scroll-padding-top: 5em;
}

.filters {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    padding: 8px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: background-color 0.15s;
}

.filters-toggle:hover {
    background: #eef0f2;
}

.filters-icon {
    width: 14px;
    height: 14px;
    color: #495057;
    flex-shrink: 0;
}

.filters-toggle-label {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #495057;
}

.filters-active-badge {
    font-size: 0.72em;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(44, 62, 80, 0.1);
    padding: 2px 7px;
    border-radius: 999px;
}

.filters-chevron {
    width: 15px;
    height: 15px;
    color: #6c757d;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.filters.filters-open .filters-chevron {
    transform: rotate(180deg);
}

.filters-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.filters.filters-open .filters-body {
    max-height: 300px;
}

.filters-body form {
    padding: 2px 20px 12px;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    font-size: 0.8em;
}

.filter-item select {
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-item select:hover {
    border-color: #2c3e50;
}

.filter-item select:focus {
    outline: none;
    border-color: #2c3e50;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 1.5px solid #2c3e50;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

.timetable-container {
    padding: 15px 20px;
    overflow-x: auto;
}

.timetable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1000px;
}

.timetable th {
    background: #495057;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-left: 3px solid #2c3e50;
}

.timetable th:first-child {
    border-left: none;
}

/* Rows grow with their content; multiHour.js then pins the heights it measures */
.timetable tbody tr {
    height: 80px;
}

.timetable td {
    border-top: 1px solid #dee2e6;
    border-left: 3px solid #2c3e50;
    padding: 0;
    height: auto;
    vertical-align: top;
    background-color: white;
    /* Dashed half-hour line, level with where multiHour.js ends a :30 block */
    background-image: repeating-linear-gradient(to right, #ced4da 0 6px, transparent 6px 14px);
    background-size: 100% 1px;
    background-position: left 50%;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
}

.timetable td:first-child {
    border-left: none;
}

.timetable tr:first-child td {
    border-top: 2px solid #495057;
}

.timetable .time-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-align: center;
    width: 100px;
    padding-top: 6px;
    white-space: nowrap;
}

.cell-content {
    display: flex;
    gap: 2px;
    padding: 4px;
    height: 100%;
    overflow: visible;
}

.class-block {
    flex: 0 0 var(--block-width, 100%);
    max-width: var(--block-width, 100%);
    min-width: 0;
    background: #e9ecef;
    padding: 8px;
    font-size: 0.85em;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: 3px solid #495057;
    position: relative;
    border-radius: 4px;
}

.class-block.multi-hour-start {
    border: 3px solid #2c3e50;
    border-radius: 4px;
    box-shadow: none;
}

.class-block.multi-hour-continuation {
    border-left: 3px solid #2c3e50;
    border-right: 3px solid #2c3e50;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(44, 62, 80, 0.2), inset 0 -1px 0 rgba(44, 62, 80, 0.2);
    padding-top: 6px;
    padding-bottom: 6px;
}

.class-block.multi-hour-end {
    border: 3px solid #2c3e50;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(44, 62, 80, 0.35);
}

.class-block .continuation-label {
    display: inline-block;
    font-size: 0.64em;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    margin-top: 4px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
}

.class-block-empty {
    background: transparent !important;
    border: none !important;
    pointer-events: none;
    cursor: default;
}

.class-block.is-continuation-placeholder {
    visibility: hidden;
    pointer-events: none;
    border: none !important;
    box-shadow: none !important;
}

.class-block:hover {
    background: #dee2e6;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.class-block-empty:hover {
    box-shadow: none;
}

.class-block.multi-hour-continuation .provision {
    font-size: 1em;
    margin-bottom: 2px;
}

.class-block .provision {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 4px;
    color: #212529;
}

.class-block .staff {
    color: #212529;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.class-block .info {
    color: #212529;
    font-size: 0.8em;
    margin-top: 4px;
}

.empty-cell {
    color: #adb5bd;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Mode Icons */
.mode-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

.mode-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border: 2px solid #2c3e50;
    padding: 0;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
}

.modal-detail {
    margin-bottom: 15px;
    display: flex;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.modal-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
}

.modal-value {
    color: #212529;
    flex: 1;
}

.modal-message {
    margin-top: 8px;
    font-size: 0.9em;
    color: #b02a37;
}

/* Violation reasons inside the class details modal */
.modal-label-violation {
    color: #c0392b;
}

.modal-violations-row {
    background: #fef9f9;
    border-left: 3px solid #c0392b;
    padding-left: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.modal-violation-item {
    color: #c0392b;
    font-size: 0.875em;
    line-height: 1.5;
}

.legend {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.legend h3 {
    color: #495057;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 600;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.legend-item > :not(.legend-name) {
    flex-shrink: 0;
}

.legend-color {
    width: 24px;
    height: 16px;
    border: 1px solid #dee2e6;
}

.legend-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #212529;
}

/* One line only, so a long name is cut short rather than making the legend taller */
.legend-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8em;
    color: #6c757d;
}

.legend-item-draggable {
    position: relative;
    cursor: grab;
    border-radius: 4px;
    padding: 10px 22px 10px 15px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.legend-item-draggable:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.legend-hours {
    margin-left: auto;
    font-size: 0.75em;
    color: #6c757d;
}

.legend-hint {
    margin-left: 6px;
    font-size: 0.75em;
    font-weight: 400;
    color: #6c757d;
}

.modal-actions {
    margin-top: 1rem;
    margin-bottom: 0;
    border-bottom: none;
    gap: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.modal-actions[hidden],
.modal-detail[hidden] {
    display: none;
}

/* ── Edit-mode visual state ─────────────────────────────────────────────── */

/* Dim all direct read-only rows; child combinator keeps edit-panel rows unaffected */
.modal-body > .modal-detail {
    transition: opacity 0.18s ease;
}

.modal-body.is-editing > .modal-detail:not(#modal-edit-actions) {
    opacity: 0.38;
}

/* Edit panel: left accent stripe + very pale tinted background */
#modal-edit-panel {
    border-left: 3px solid #2c7be5;
    background: #f4f8ff;
    border-radius: 0 4px 4px 0;
    padding: 0.65rem 0.75rem 0.85rem;
    margin-top: 0.75rem;
}

/* "Editing" micro-label at the top of the panel */
#modal-edit-panel::before {
    content: 'Editing';
    display: block;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2c7be5;
    margin-bottom: 0.6rem;
}

/* Soften the divider lines inside the edit panel to match the tinted bg */
#modal-edit-panel .modal-detail {
    border-bottom-color: #dbe8f8;
}

/* Remove the trailing border+margin from whichever row is last visible.
   Classroom row is structurally last among .modal-detail children; when it is
   hidden the Mode row (nth-child 2) becomes the last visible one. */
#modal-edit-classroom-row,
#modal-edit-panel:not(:has(#modal-edit-classroom-row:not([hidden]))) .modal-detail:nth-child(2) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.no-classes {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-classes h2 {
    margin-bottom: 10px;
}

/* Summary bar */
.summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.summary-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-btn {
    padding: 5px 13px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    font-size: 0.82em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 3px;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.summary-btn:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

.summary-btn:hover {
    border-color: #adb5bd;
    color: #2c3e50;
    background: #f0f2f4;
}

.summary-btn.has-violations {
    border-color: #c0392b;
    color: #c0392b;
}

.summary-btn.has-violations:hover {
    background: #fdf2f2;
    border-color: #a93226;
}

.summary-btn.all-clear {
    border-color: #27ae60;
    color: #27ae60;
}

.summary-btn-primary,
.summary-btn-download {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.summary-btn-primary:hover,
.summary-btn-download:hover {
    background: #3d5166;
    border-color: #3d5166;
    color: #fff;
}

.summary-btn-primary:focus-visible,
.summary-btn-download:focus-visible {
    outline-color: #2c3e50;
    outline-offset: 2px;
}

/* Violation highlight */
.class-block.violation-highlight {
    outline: 2px solid #c0392b;
    outline-offset: -2px;
    z-index: 3;
}

/* Wide modal variant */
.modal-content-wide {
    max-width: 680px;
}

.modal-body-scrollable {
    max-height: 65vh;
    overflow-y: auto;
}

/* Violations modal body */
.violations-loading {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

.violations-ok {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.95em;
    padding: 4px 0;
}

.violations-note {
    color: #6c757d;
    font-size: 0.82em;
    font-style: italic;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
}

.violations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.violation-item {
    padding: 8px 10px 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875em;
    color: #495057;
    border-left: 3px solid #c0392b;
    background: #fef9f9;
    margin-bottom: 4px;
    line-height: 1.45;
}

.violation-item:last-child {
    margin-bottom: 0;
}

/* Stats modal body */
.stats-summary {
    font-size: 0.9em;
    color: #495057;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.stats-section-title {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #495057;
    margin: 16px 0 8px;
}

.stats-section-title:first-child {
    margin-top: 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875em;
    margin-bottom: 4px;
}

.stats-table th {
    background: #495057;
    color: white;
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.stats-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.stats-load-bar {
    display: inline-block;
    height: 8px;
    background: #2c3e50;
    border-radius: 2px;
    min-width: 2px;
    max-width: 80px;
    vertical-align: middle;
    margin-right: 6px;
}

.stats-load-bar.overloaded {
    background: #c0392b;
}

/* Loaded data page */
body.data-page {
    background: #f5f5f5;
}

.data-container {
    max-width: 1400px;
}

.data-page-toolbar {
    border-bottom: 2px solid #e9ecef;
}

.data-state {
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9ecef;
    color: #495057;
}

.data-state-ready {
    background: #e9f7ef;
    color: #1e8449;
}

.data-state-empty {
    background: #fdf2f2;
    color: #a93226;
}

.data-empty-state {
    margin: 18px 20px 20px;
    border: 1px solid #f5c6cb;
    background: #fff5f6;
    color: #7b1f29;
    padding: 16px;
}

.data-empty-state h2 {
    margin-bottom: 6px;
    font-size: 1.1em;
}

.data-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.data-summary-card {
    border: 1px solid #dee2e6;
    background: white;
    padding: 10px 12px;
}

.data-summary-title {
    font-size: 0.74em;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    margin-bottom: 4px;
}

.data-summary-value {
    font-size: 1.35em;
    font-weight: 700;
    color: #2c3e50;
}

.data-sections {
    padding: 14px 20px 20px;
}

.data-section {
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    background: white;
}

.data-section:last-child {
    margin-bottom: 0;
}

.data-section > summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.86em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2c3e50;
    background: #f7f9fb;
    border-bottom: 1px solid #e9ecef;
    padding: 11px 12px;
}

.data-section > summary::-webkit-details-marker {
    display: none;
}

.data-section > summary::before {
    content: '+ ';
    font-weight: 700;
}

.data-section[open] > summary::before {
    content: '- ';
}

.data-section-body {
    padding: 10px 12px 12px;
}

.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    min-width: 920px; /* wide enough for the 11-column staff table */
}

.data-table th,
.data-table td {
    white-space: nowrap;
    vertical-align: top;
}

.data-empty {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

@media (max-width: 700px) {
    .data-page .summary-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .data-page .summary-bar-left,
    .data-page .summary-bar-right {
        justify-content: flex-start;
    }

    .data-page .summary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Drag-and-drop */
.class-block[draggable="true"] {
    cursor: grab;
}

/* Grip dots marking blocks that can be dragged */
@media screen {
    html:not(.printing) .class-block[draggable="true"] {
        padding-right: 14px;
    }

    html:not(.printing) .class-block[draggable="true"]::after,
    .legend-item-draggable::after {
        content: "";
        position: absolute;
        top: 5px;
        right: 4px;
        width: 8px;
        height: 12px;
        background-image: radial-gradient(circle, #212529 1.2px, transparent 1.5px);
        background-size: 4px 4px;
        opacity: 0.45;
        pointer-events: none;
        transition: opacity 0.15s;
    }

    html:not(.printing) .class-block[draggable="true"]:hover::after,
    .legend-item-draggable:hover::after {
        opacity: 0.9;
    }

    .legend-item-draggable::after {
        top: 50%;
        right: 8px;
        margin-top: -6px;
    }
}

.class-block.dragging {
    opacity: 0.35;
    cursor: grabbing;
    pointer-events: none;
}

.timetable td.drop-target {
    background: #e3f2fd;
    outline: 2px dashed #1976d2;
    outline-offset: -2px;
}

@page {
    size: landscape;
    margin: 1cm;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    /* Also hidden by the rules below, but pages without print.js rely on these */
    .filters, .legend, .modal, .summary-bar, .header-nav, .edit-mode-banner {
        display: none;
    }

    .class-block:hover {
        background: inherit;
    }
}

/* Set by print.js instead of @media print so the layout can be measured before scaling */
html.printing body {
    padding: 0;
    min-height: 0;
}

html.printing :is(.filters, .legend, .modal, .summary-bar, .header-nav, .edit-mode-banner) {
    display: none;
}

html.printing .container {
    max-width: none;
}

html.printing .timetable-container {
    overflow: visible;
    padding: 0;
}

html.printing .timetable {
    min-width: 0;
}

html.printing .timetable th {
    position: static;
}

/* Keeps the icon in the same place in every block instead of wrapping with the name */
html.printing .class-block .mode-icon {
    display: block;
}
