body {
    font-family: 'Roboto', sans-serif;
}

main {
    margin-top: 56px;
    /* Height of navbar */
    margin-bottom: 60px;
    /* Height of footer */
    min-height: calc(100vh - 116px);
    /* 100vh - (navbar + footer) */
    padding: 20px 0;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #f5f5f5;
}

.navbar {
    border-bottom: 1px solid #dee2e6;
}

/* Login form styles */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Flash message styles */
.flash-message {
    margin-top: 1rem;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.subheader {
    margin-bottom: 10px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
}

.table td {
    padding:4px !important;
}


.number {
    text-align: right;
}

.employee {
    padding-left: 30px;
}

.total-row {
    font-weight: bold;
}

.leave-status {
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

.over-value {
    color: #dc3545;
}

/* Red for over values */
.under-value {
    color: #28a745;
}

.bu-total-row,
.bg-light td {
    font-weight: bold;
    background-color: #e9ecef;
}

.bg-dark {
    background-color: #343a40;
    color: white;
    border: 1px solid #343a40;
}


/* Muted/hidden text for Munis Deep Links if you don't have the extension installed. */
.dmlink {
    display: none;
}

.dmlink i {
    color: #ccc;
}

.dml .dmlink {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
}


/* Print styles */
@media print {

    /* Hide non-printable elements */
    .navbar,
    .footer,
    button,
    .no-print {
        display: none !important;
    }

    /* Ensure white background */
    body {
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
        font-size: 12px;
    }

    .dmlink {
        display: none;
    }

    /* Ensure content is printable */
    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Table styling for print */
    table {
        page-break-inside: auto !important;
        width: 100% !important;
    }

    th {
        font-size: 11px !important;
        padding: 3px;
    }

    tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    td {
        font-size: 8px !important;
        padding: 3px;
    }

    thead {
        display: table-header-group !important;
    }

    /* Ensure links show their URLs */
    a[href]::after {
        content: " (" attr(href) ")";
    }

    /* Force background colors to print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}