/* reset */

*
{
	border: 0;
	box-sizing: content-box;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
	list-style: none;
	margin: 0;
	padding: 0;
	text-decoration: none;
	vertical-align: top;
}

/* content editable */

*[contenteditable] { border-radius: 0.25em; min-width: 1em; outline: 0; }

*[contenteditable] { cursor: pointer; }

*[contenteditable]:hover, *[contenteditable]:focus, td:hover *[contenteditable], td:focus *[contenteditable], img.hover { background: #DEF; box-shadow: 0 0 1em 0.5em #DEF; }

span[contenteditable] { display: inline-block; }

/* heading */

h1 { font: bold 100% sans-serif; letter-spacing: 0.5em; text-align: center; text-transform: uppercase; }

/* table */

table { font-size: 75%; table-layout: fixed; width: 100%; }
table { border-collapse: collapse; border-spacing: 2px; }
th, td { border-width: 1px; padding: 0.5%; position: relative; text-align: left; }
th, td { border-radius: 0.25em; border-style: solid; }
th { background: #EEE; border-color: #BBB; }
td { border-color: #DDD; }

/* page */

html { font: 16px/1 'Open Sans', sans-serif; overflow: auto; padding: 0.5in; }
html { background: #999; cursor: default; }

body { box-sizing: border-box; height: 297mm; margin: 0 auto; overflow: hidden; padding: 0.5in; }
body { background: #FFF; border-radius: 1px; box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5); }

/* header */

header { margin: 0 0 3em; }
header:after { clear: both; content: ""; display: table; }

header h1 { background: #000; border-radius: 0.25em; color: #FFF; margin: 0 0 1em; padding: 0.5em 0; }
header address { float: left; font-size: 75%; font-style: normal; line-height: 1.25; margin: 0 1em 1em 0; margin-left: 20px;}
header address p { margin: 0 0 0.25em; }
header span, header img { display: block; float: left;  }
header span { margin: 0 0 1em 1em; max-height: 25%; max-width: 60%; position: relative; }
header img { height: 100; width: 100; }
header input { cursor: pointer; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; height: 100%; left: 0; opacity: 0; position: absolute; top: 0; width: 100%; }
header p.hd{ text-align: center; }
/* article */

article, article address, table.meta, table.inventory { margin: 0 0 3em; }
article:after { clear: both; content: ""; display: table; }
article h1 { clip: rect(0 0 0 0); position: absolute; }

article address { float: left; font-size: 75%;}

/* table meta & balance */

table.meta, table.balance { float: right; width: 36%; }
table.meta:after, table.balance:after { clear: both; content: ""; display: table; }

/* table meta */

table.meta th { width: 100%;}
table.meta td { width: 100%; }

/* table items */

table.inventory { clear: both; width: 100%; white-space: normal; }
table.inventory th { font-weight: bold; text-align: center; white-space: normal;}

tfoot th{text-align: center;}
tfoot span:last-child {text-align: right;}

table.inventory td:nth-child(1) { width: 12%; }
table.inventory td:nth-child(2) { width: 38%; }
table.inventory td:nth-child(3) { text-align: left; width: 38%; }
table.inventory td:nth-child(4) { text-align: left; width: 24%; }
table.inventory td:nth-child(5) { text-align: left; width: 12%; }
table.inventory td:nth-child(6) { text-align: left; width: 12%; }
table.inventory td:nth-child(7) { text-align: left; width: 20%; }
table.inventory td:nth-child(8) { text-align: left; width: 12%; }
table.inventory td:nth-child(9) { text-align: left; width: 20%; }
table.inventory td:nth-child(10) { text-align: left; width: 12%; }
table.inventory td:nth-child(11) { text-align: left; width: 20%; }
table.inventory td:nth-child(12) { text-align: left; width: 12%; }
table.inventory td:nth-child(13) { text-align: left; width: 12%; }
table.inventory td:nth-child(14) { text-align: left; width: 12%; }


/* table balance */

table.balance th, table.balance td { width: 50%; }
table.balance td { text-align: right; }

table.bank th, table.bank td { width: 50%; }
table.bank td { text-align: left; }
table.bank { float: left; width: 36%; }

/* aside */

aside h1 { border: none; border-width: 0 0 1px; margin: 0 0 1em; }
aside h1 { border-color: #999; border-bottom-style: solid; }

.declare p {text-align: center;}
.seal p{text-align: left; }
.sign p{text-align: right;}

/* javascript */

.add, .cut
{
	border-width: 1px;
	display: block;
	font-size: .8rem;
	padding: 0.25em 0.5em;	
	float: left;
	text-align: center;
	width: 0.6em;
}

.add, .cut
{
	background: #9AF;
	box-shadow: 0 1px 2px rgba(0,0,0,0.2);
	background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%);
	background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%);
	border-radius: 0.5em;
	border-color: #0076A3;
	color: #FFF;
	cursor: pointer;
	font-weight: bold;
	text-shadow: 0 -1px 2px rgba(0,0,0,0.333);
}

.add { margin: -2.5em 0 0; }

.add:hover { background: #00ADEE; }

.cut { opacity: 0; position: absolute; top: 0; left: -1.5em; }
.cut { -webkit-transition: opacity 100ms ease-in; }

tr:hover .cut { opacity: 1; }

/* General styling for the no-print div */
/* General styling for the no-print div */
.no-print {
    position: absolute;
    top: 315mm;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%; /* Adjust the width based on your preference */
    padding: 10px;
    border-top: 2px solid #fff;
}

/* Adjust styles for individual items */
.no-print .about-me,
.no-print .copyright,
.no-print .print-button {
    flex: 1; /* Equal distribution of space among items */
    text-align: center;
}

/* Add styles for the print button */
.print-button button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.print-button button:hover {
    background-color: #0056b3; /* Hover state background color */
}

/* Ensure the <a> and <p> are displayed in a line */
.no-print a, .no-print p {
    display: inline-block;
    margin: 0;
}

.no-print .about-me a {
    text-decoration: none;
    color: #f6ff00; /* Link color */
    border-bottom: 2px solid rgb(0, 0, 0); /* Colored underline */
    transition: border-bottom 0.3s ease; /* Add a transition effect */
}

.no-print .about-me a:hover {
    border-bottom: 2px solid #0056b3; /* Change color on hover */
}

@media print {
	* { -webkit-print-color-adjust: exact; }
	html { background: none; padding: 0; }
	body { box-shadow: none; margin: 0; }
	span:empty { display: none; }
	.add, .cut { display: none; }
	.no-print {display: none;}
}

@page { margin: 0; }