@page 
{
    margin-top: 1.3cm;
    size : A4;
    orphans: 2; 
    
    @bottom-center{
        content: "Footer text"
    }
}

/* Hide unnecessary elements */
#header, #subhead, aside, .user_detail_row, .sgl_ads, footer, #class-detail-content div.entry-detail, .do_not_print, .showlistdiv, td.sgl_ads, .rsbar-widget, .tabbedBox .header {display: none !important;}
#content .no_print_border, .tabbedBox{border: none;}
.print_block {display: block;}
.print_table_row {display: table-row;}
table tbody td#page_content_area{display: table-cell !important; float: none !important;}
table thead {display: table-row-group;}

/* Show hidden elements */
.block-i span.info-icon{display: block !important;}

/* Font sizes and links*/
body, table.styled tr td, table.styled tr th, table.styled, .grid-heading, legend, .class-detail, p, .secondary-header{font-size: 15px !important; font-color:black;}
body a:link:after, body a:visited:after, body a, a:link:after, a:visited:after, body a, td a:link:after, td a:visited:after{  
    content: "" !important;
    text-decoration: none;
}

/* Format CSS*/
#subheadpagename div.h1{margin-top:5px;}
#content{margin:0px;padding:0px;width:100%;max-width: 100%;margin-top:5px;}
#main{border:none;}
#content.container_12 .grid_12 {max-width:90%;}
.tabbedBox .tabbed {margin-top:2px;}
.tabbedBox .header ul li.current a{border-bottom: none !important;}
table.styled tfoot tr th:first-child{border-left:none !important;}
table.styled tfoot tr th:last-child{border-right:none !important;}
.paginate_active, .menu-links a.current {border-width:2px 2px 2px 2px;border-color: black black !important;color: black !important;}
table.styled thead.main-header tr th, table.styled tfoot tr th, table.styled tfoot tr th:first-child, table.styled tfoot tr th:last-child {border: 1px solid #DFDFDF !important;}

/* JQGrid listing pages CSS*/
#detail-area{width:90% !important; max-width:90%;min-width:90% !important;margin:0px !important;margin-right:0px !important;}
.class-detail, .class-detail-rows{width:100%;min-width:100%;}
div.placing,  div.placing.centered, td.placing.center, td.placing, div.selected-entry div {color: black !important;}

/* Class Signup page CSS*/
#content .ui-jqgrid.ui-widget{min-width:90%;}
#content .ui-jqgrid.ui-widget .ui-jqgrid-title{padding:5px !important;}
#content .ui-jqgrid.ui-widget .ui-jqgrid-view, #content .ui-jqgrid.ui-widget .ui-jqgrid-titlebar.ui-widget-header,
#content .ui-jqgrid.ui-widget .ui-state-default.ui-jqgrid-hdiv, #content .ui-jqgrid.ui-widget .ui-state-default.ui-jqgrid-hdiv .ui-jqgrid-hbox,
#content .ui-jqgrid.ui-widget .ui-state-default.ui-jqgrid-hdiv .ui-jqgrid-hbox .ui-jqgrid-htable,
#content .ui-jqgrid.ui-widget .ui-jqgrid-bdiv, #content .ui-jqgrid.ui-widget .ui-jqgrid-bdiv table
{
    min-width:100% !important;
    width:100% !important;
    padding-right: 0px;
}
#content .ui-jqgrid.ui-widget .ui-state-default.ui-jqgrid-hdiv .ui-jqgrid-hbox .ui-jqgrid-htable tr.ui-jqgrid-labels th > div,
#content .ui-jqgrid.ui-widget .ui-jqgrid-bdiv table tr td{font-size: 15px !important;}

/* Page break issue */
table.styled, table { page-break-inside : auto; -webkit-region-break-inside: auto !important; }
table.styled tbody tr, table.styled tr { page-break-after:auto; page-break-inside: avoid !important; -webkit-region-break-inside: avoid; }
table.styled td, table.styled th{ page-break-after: auto; word-wrap:break-word;}

div#print_footer{display: block;width: 100%; height:auto; overflow: auto; text-align: center;margin-top:10px;}

#showcompany-overrides #content.container_12 td#page_content_area  > div.grid_12{max-width: 88% !important;}
#content.container_12 td#page_content_area > div.grid_12 {margin: 0px;}
