﻿html, body {
    height: 100%;
}

main.container {
    min-height: 80vh;
}

/* Form responsiveness */
@media (max-width: 768px) {
    .form-label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* Table responsiveness for mobile */
@media (max-width: 768px) {
    .table-responsive-stack td,
    .table-responsive-stack th {
        display: block;
        width: 100%;
        text-align: right;
    }

        .table-responsive-stack td::before {
            content: attr(data-label);
            float: left;
            font-weight: bold;
            text-transform: uppercase;
        }

    .table thead {
        display: none;
    }

    .table tr {
        border-bottom: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
    .modal-dialog-scrollable {
        max-height: 90vh;
        margin: 0;
    }

    .modal-content {
        border-radius: 0;
        height: 100%;
    }
}
@media print {
    body * {
        visibility: hidden;
    }

    #printArea, #printArea * {
        visibility: visible;
    }

    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }

    .modal-footer, .modal-header {
        display: none !important;
    }
}
@media print {
    #printArea .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
}
