body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f7f8fa;
}

main {
    flex: 1;
}

.card {
    border: none;
    box-shadow: 0 .125rem .5rem rgba(0,0,0,.06);
    border-radius: .75rem;
}

.navbar-brand {
    letter-spacing: .5px;
}

.dashboard-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
}

@media (max-width: 576px) {
    h1, .h1 { font-size: 1.5rem; }
    .display-5 { font-size: 2rem; }
}

/* ---------------------------------------------------------
 * Print-friendly report styles
 * --------------------------------------------------------- */
@media print {
    /* Hide navigation, sidebars, buttons */
    .sidebar,
    nav.navbar,
    footer,
    .btn,
    .no-print,
    .nav-pills,
    .pagination {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12px;
    }

    main {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .report-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }

    .report-header h2 {
        margin: 0;
        font-size: 18px;
    }

    .report-header .subtitle {
        font-size: 12px;
        color: #555;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table th, table td {
        border: 1px solid #999;
        padding: 4px 6px;
        font-size: 11px;
    }

    table th {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page-break {
        page-break-before: always;
    }
}

/* Visible only when printing */
.report-header { display: none; }
@media print {
    .report-header { display: block; }
}