.fixed-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.content-area {
    margin-right: 320px;
}

/* Ensure the entire section and table change color on hover */
section {
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 1rem;
    border-radius: 5px;
}

section:hover {
    background-color: #007bff;
    color: white;
}

/* Ensure all text inside sections turns white on hover */
section:hover h3,
section:hover p,
section:hover td,
section:hover th {
    color: white !important;
}

/* Override Bootstrap striped table colors on hover */
section:hover table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #0062cc !important; /* Darker blue for odd rows */
}

section:hover table.table-striped tbody tr:nth-of-type(even) {
    background-color: #007bff !important; /* Consistent blue for even rows */
}

table { margin-top: 20px; }

/* Set a fixed width for the period column */
td:first-child, th:first-child {
    width: 150px; /* Adjust as needed */
    text-align: left;
    white-space: nowrap; /* Prevents wrapping */
}

/* Ensure text in the period name column is aligned consistently */
td:first-child {
    padding-left: 10px;
    font-weight: bold;
}

body {
    font-size: 16px; /* Set the default font size to 16px */
    font-family: Arial, Helvetica, sans-serif; /* Use a clean, readable sans-serif font */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Print-specific styles */
@media print {
    body {
        font-size: 12px !important; /* Reduce font size */
        font-family: Arial, Helvetica, sans-serif;
        color: black !important;
        background: white !important;
    }

    .fixed-right {
        display: none !important; /* Hide sidebar on print */
    }

    .content-area {
        margin-right: 0 !important; /* Use full width for content */
    }

    .alert { 
        padding: 5px !important;
        margin-bottom: 5px !important;
    }

    section {
        padding: 0 !important;
        margin-bottom: 0px !important;
        border: 1px solid #ddd; /* Light border to separate sections */
    }

    h1, h2, h3, h4 {
        font-size: 14px !important; /* Reduce heading sizes */
        margin-bottom: 5px !important;
    }

    table {
        width: 100% !important;
        font-size: 11px !important;
        border-collapse: collapse;
        margin: 0 !important;
    }
    .table { margin-bottom: 0 !important; }

    th, td {
        padding: 4px !important; /* Reduce cell padding */
        border: 1px solid #ddd !important;
    }

    /* Remove background colors */
    section,
    section:hover,
    section:hover h3,
    section:hover h4,
    section:hover p,
    section:hover td {
        background: white !important;
        color: black !important;
    }

    /* Remove table row striping */
    table.table-striped tbody tr:nth-of-type(odd),
    table.table-striped tbody tr:nth-of-type(even) {
        background-color: white !important;
    }

    /* Ensure tables don’t break awkwardly across pages */
    table, section {
        page-break-inside: avoid !important;
    }
}