/**
 * @Author: amirhp-com <its@amirhp.com>
 * @Date:   2022/07/12 12:16:16
 * @Last modified by:   amirhp-com <its@amirhp.com>
 * @Last modified time: 2022/08/31 17:17:07
 */


body,
html {
	margin: 0 auto;
	max-width: 1000px;
	-webkit-print-color-adjust: exact;
	direction: ltr;
	font-family: Tahoma ,Arial !important;
	font-size: {{{font_size}}};
	padding: 0.5cm;
	-webkit-print-color-adjust:exact;
}
*{
	font-family: Tahoma ,Arial !important;
	font-size: {{{font_size}}};
	direction: ltr;
}

#invoice_qrcode {
	margin: 0.5rem;
}

tr.show_invoices_id_barcode_colspan td[colspan="2"]{
	padding: 0 4px 4px 0 !important;
}

div.watermark_print{
	display: none;
	width: 100%;
	height: 100%;
	background: url("{{{watermark}}}") no-repeat;
	background-position: center;
	z-index: 99999999;
	border: none !important;
	background-size: 400px !important;
}

div.watermark {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	-webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none;
	height: 100%;
	background: url("{{{watermark}}}") no-repeat;
	background-position: center;
	z-index: 99999999;
	border: none !important;
	background-size: 400px !important;
}

.print-button:only-child{
	border-radius: 5px;
}
td table.display_meta * {
	margin: 0;
}
td table.display_meta{
	border-collapse: collapse;
	width: auto;
}
.print-button {
	cursor: pointer;
	text-decoration: none;
	background-color: #555;
	padding: 1rem;
	margin: auto;
	-webkit-margin-end: 2px;
	margin-inline-end: 2px;
	color: aliceblue;
	display: inline-block;
	border-radius: 5px 0 0 5px;
	line-height: 0;
}

.print-button:nth-last-of-type(2) {
	border-radius: 0 5px 5px 0;
}

.date_digit {
	display: inline-flex;
	direction: ltr;
	background: {{{theme_color3}}};
	padding-inline: 5px;
}

h1.puiw_title {
	text-align: center;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
	margin: 5px 0;
	align-items: center !important;
	line-height: 5.2;
	border: 1px solid {{{theme_color}}};
	background: {{{theme_color}}} !important;

}

.header-item-wrapper, .header-item-wrapper *{
	width: 100%;
	height: 100%;
	line-height: 7;
}

.content-table thead tr th,
.content-table tbody tr td:first-child,
tr[if="show_custom_footer"],
tr[if="show_order_note"] td,
tr[if="show_custom_footer"] td,
tr[if="show_order_note"],
thead tr[if="show_order_items"],
.header-item-wrapper{
	border: 1px solid {{{theme_color}}};
	background: {{{theme_color}}} !important;
}

tfoot,
thead,
tr[if="show_order_total"] tr:last-child,
.content-table tr:nth-child(even),
.content-table tr.even,
.bordered.header-item-data,
.bordered.grow{
	border: 1px solid {{{theme_color}}};
	background: {{{theme_color2}}};
}


tr[if="show_order_note"] tr,
tr[if="show_order_total"] tr:not(:last-child) {
	background: transparent !important;
}


.content-table tr:nth-child(odd) ,
.content-table tr.odd {
	background: #FFF;
}

thead tr[if="show_order_items"] {
	line-height: 3;
}

.header-item-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	place-content: center;
	place-items: center;
}


h1.puiw_title img {
	-webkit-margin-end: 1rem;
	margin-inline-end: 1rem;
}


.page {
	background: white;
	page-break-after: always;
	position: relative;
}

.autodir {
	display: inline-flex;
}

[dir=rtl] .autodir {
	direction: ltr;
}

table {
	width: 100%;
	table-layout: fixed;
	border-spacing: 0;
}

table * {
	font-size: {{{font_size}}};
	direction: ltr;
}

.header-table {
	table-layout: fixed;
	border-spacing: 0;
}

.header-table td {
	padding: 0;
	vertical-align: top;
}

.flex {
	display: flex;
	justify-content: space-evenly;
}

.flex > * {
	float: left;
}

.flex-grow {
	flex-grow: 10000000;
}



.header-item-data {
	height: 100%;
	/* width: 100%; */
}
.portait {
	height: 100%;
	margin: 0 !important;
	text-align: center;
}

.header-table table {
	width: 100%;
	vertical-align: middle;
}

.content-table {
	border-collapse: collapse;
}

.bordered {
	border: 1px solid {{{theme_color}}};
	padding: 0.12cm;
}

.content-table td,
th {
	border: 1px solid {{{theme_color}}};
	text-align: center;
	padding: 0.1cm;
	font-weight: normal;
	word-break: break-word;
}

table.centered td {
	vertical-align: middle;
}

.serials {
	direction: ltr;
	text-align: left;
}

.title {
	text-align: left;
}

.grow {
	width: auto;
	height: 100%;
}

.font-small {
	font-size: var(--theme_fontsizes);
}

.font-medium {
	font-size: {{{font_sizem}}};
}

.label {
	font-weight: bold;
	padding: 0 0 0 2px;
}

.ltr {
	direction: ltr;
	display: block;
}

tr td[colspan="2"].shipping_ref_id {
	padding: 4px 4px 4px 0 !important;
}

tr[if="show_signature"] div.flex-grow{
	width: 48%;
}
table.transp * {
	border: none !important;
}

td .title i{
	display: block;
	text-align: center;
}


td[if="show_product_image"] img,
td[class="show_product_image"] img {
	width: 100%;
	height: auto;
}


.offprecwent::after {
    content: " off";
}
.offprecwent {
    display: inline-block;
    direction: ltr;
    font-weight: 800;
}

[if="show_shipping_ref_id"],
[if="show_invoices_id_barcode"]{
	display: none;
}

img.barcode {
	min-height: 40px;
}

.show_product_title_description, .show_product_title_description * { text-align: left !important; }
tfoot td:last-of-type * { text-align: left; vertical-align: top; }
