﻿/* Hide all parts that should not print */
/* ==================================== */

body
{
	background-color: #FFFFFF;
}

#frame
{
	width: auto;
	background: none;
	border: none;
}

#header
{
	display: none;
}

#content_border_left,
#border_left,
#border_right
{
	background: none;
	margin: 0;
	padding: 0;
}

#menu
{
	display: none;
}

#content_header
{
	display: none;
}

#messagebar
{
	display: none;
}

#content_text
{
	margin: 0;
	padding: 0;
}

#footer
{
	display: none;
}

div.pages,
div.copies,
div.noprint
{
	display: none;
}

#page_heading
{
	display: none;
}

.steps
{
	display: none;
}

/* Metronic theme chrome - hide for print/PDF */
/* ========================================== */
#kt_header,
#kt_header_mobile,
#kt_aside,
#kt_footer,
#kt_subheader,
.aside,
.header,
.header-mobile,
.footer,
.subheader,
.offcanvas,
#kt_quick_panel,
#kt_demo_panel,
#kt_scrolltop
{
	display: none !important;
}

#kt_wrapper,
#kt_content,
.wrapper,
.content,
.page,
.d-flex
{
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border: none !important;
	min-height: 0 !important;
}

/* Do NOT set html padding here. wkhtmltopdf page size for small labels
   is 100x30mm with -T 0 -B 0 -L 0 -R 0; any html padding eats usable
   space and pushes barcode content onto a second page. Per-page margin
   is already controlled by wkhtmltopdf flags + @page rule below. */
html
{
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

body,
body#kt_body
{
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	overflow-x: hidden !important;
}

/* Clamp any fixed-width tables from printing.css so they cannot exceed the
   body's content area (printing.css sets table.sheet width:786px which
   overflows on A4 with margins). */
table.sheet,
table.biglabel,
table.smalllabel,
table.smalllabel_single,
table.smalllabelA4
{
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Kill borders/shadows on Metronic card wrappers that show up on print */
.card,
.card-body,
.card-header,
.card-footer,
.portlet,
.portlet-body,
.portlet-title,
.portlet-head,
.content-wrapper,
main,
section,
article
{
	border: none !important;
	box-shadow: none !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Bootstrap utility .border draws a 1px grey box — suppress on print.
   The old Master_Default didn't load Bootstrap so .border had no effect. */
.border,
.border-top,
.border-right,
.border-bottom,
.border-left
{
	border: none !important;
}

#kt_content > .container,
#kt_content > .container-fluid,
.content .container,
.content .container-fluid
{
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.header-fixed #kt_wrapper,
body.aside-fixed #kt_wrapper,
body.header-mobile-fixed #kt_wrapper
{
	padding-top: 0 !important;
	padding-left: 0 !important;
}

/* Print directives */
/* ================ */

.page_break
{
    page-break-before: always;
	page-break-inside: avoid;
}

.page_break_avoid
{
	page-break-inside: avoid;
}

/* Generic Printer Styling */
/* ======================= */

table.sheet table.list { width: 100%; }
table.sheet, table.smalllabelA4, table.smalllabel_single { width: 100%; border: none; margin: 0; }
table.biglabel { width: 695px; border: none; margin: 0 auto; }
.controls table.list { width: 100%; }

table.list tr.thead
{
	page-break-after: avoid;
}

@page
{
	margin: 0cm;
}

div.border table.sheet,
div.border table.biglabel
{
	padding: 20px;
}

div.borderless table.smalllabel
{
	padding: 0px;
}
