/* Logbook comments column word-wrap */

.logbook-comments {
    max-width: 900px;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}



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

.page-break {
    page-break-before: always;
}



th,
td {
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

/* Override for comments column only */
td.logbook-comments {
    max-width: 320px;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: break-word;
}

.text-end {
    text-align: right;
}

/* Year Navigation Styles */
.year-navigation {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.year-link {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.year-link:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #1e7e34;
}

.year-anchor {
    position: relative;
}

.year-marker {
    background-color: #ffeaa7;
    color: #2d3436;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
