/*

	css/scrollable.css

*/
.mainPane {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	justify-content: center;
}

.scrollable {
	flex: 1;
	min-height: 0;
	overflow-y: auto;    /* Add a vertical scrollbar */
}

.scrollable table {
	width: 100%;
}

.scrollable thead {
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: white;
}

.scrollable tfoot {
	position: sticky;
	bottom: 0;
	z-index: 10;
	background-color: white;
}

/*

	Reformat for printing

*/

.print-only {
	display:none;
}

@media print {

    /* Remove scrolling so the full table prints */
    .scrollable {
        overflow: visible;
        height: auto;
        max-height: none;
    }

    /* Let the table break across pages */
    .scrollable table {
        page-break-inside: auto;
    }

    /* Repeat header on every page */
    .scrollable thead {
		position: static;
        display: table-header-group;
    }
	
	.scrollable tfoot {
		position: static;
	}

    /* Ensure rows break naturally */
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

	.print-only {
		display: block;
	}
}
