/**
 * CSS cho template hóa đơn Czech
 */

/* Reset và base styles */
.czech-invoice-body {
	margin: 0;
	padding: 20px;
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: #000;
	background: #f5f5f5;
}

.invoice-container {
	max-width: 210mm;
	margin: 0 auto;
	background: #fff;
	padding: 20mm;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;
}

/* Header */
.invoice-header {
	margin-bottom: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.invoice-title {
	font-size: 16px;
	font-weight: bold;
	margin: 0;
	text-align: left;
}

.invoice-number {
	font-size: 14px;
	text-align: right;
}

/* Sections */
.invoice-section {
	margin-bottom: 25px;
}

.section-title {
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 10px 0;
	border-bottom: 1px solid #ccc;
	padding-bottom: 5px;
}

/* Supplier và Customer Info */
.info-sections-wrapper {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 30px;
	margin-top: 20px;
}

.info-box {
	flex: 1;
	min-width: 0;
	background-color: #f5f5f5;
	border: 1px solid #333;
	padding: 12px 15px;
	box-sizing: border-box;
}

.company-info,
.customer-info {
	line-height: 1.6;
	font-size: 12px;
	text-align: left;
}

.section-heading {
	font-size: 12px;
	margin-bottom: 8px;
	line-height: 1.6;
}

.section-heading strong {
	font-weight: bold;
}

.company-detail,
.customer-detail {
	font-size: 12px;
	margin-bottom: 4px;
	line-height: 1.6;
}

.company-address,
.customer-address {
	font-size: 12px;
	margin-bottom: 4px;
	line-height: 1.6;
}

/* Payment Section */
.payment-section {
	clear: both;
	margin-top: 20px;
}

.payment-detail {
	font-size: 12px;
}

/* Items Table */
.items-section {
	margin-top: 30px;
}

.invoice-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 11px;
}

.invoice-items-table thead {
	background-color: #f0f0f0;
}

.invoice-items-table th {
	padding: 8px 5px;
	text-align: left;
	border: 1px solid #ccc;
	font-weight: bold;
	font-size: 10px;
}

.invoice-items-table td {
	padding: 6px 5px;
	border: 1px solid #ccc;
	text-align: left;
}

.invoice-items-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

/* Column widths */
.col-por {
	width: 3%;
	text-align: center;
}

.col-barcode {
	width: 10%;
}

.col-name {
	width: 25%;
}

.col-qty {
	width: 6%;
	text-align: center;
}

.col-unit-price {
	width: 12%;
	text-align: right;
}

.col-vat {
	width: 8%;
	text-align: center;
}

.col-price-excl {
	width: 16%;
	text-align: right;
}

.col-price-incl {
	width: 20%;
	text-align: right;
}

/* Summary Section */
.summary-section {
	margin-top: 30px;
	padding-top: 15px;
	text-align: right;
	border-top: 1px solid #ccc;
}

.summary-row {
	display: inline-block;
	padding: 5px 0;
	font-size: 12px;
	width: 100%;
	text-align: right;
}

.summary-label {
	font-weight: bold;
	margin-right: 10px;
}

.summary-value {
	text-align: right;
	font-weight: bold;
	display: inline-block;
}

.summary-total {
	font-size: 14px;
	padding-top: 10px;
	margin-top: 5px;
}


/* Print Actions */
.print-actions {
	margin-top: 30px;
	text-align: center;
}

.print-button {
	background-color: #0073aa;
	color: #fff;
	border: none;
	padding: 12px 24px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
}

.print-button:hover {
	background-color: #005a87;
}

/* Company Logo */
.company-logo {
	margin-top: 30px;
	text-align: right;
	clear: both;
}

.logo-content {
	background: #fff;
	border: 4px solid #1e3a8a;
	border-radius: 8px;
	padding: 12px 16px;
	text-align: center;
	font-size: 11px;
	line-height: 1.5;
	color: #000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	min-width: 200px;
	display: inline-block;
}

.logo-company-name {
	font-weight: bold;
	margin-bottom: 4px;
	font-size: 12px;
}

.logo-address,
.logo-city {
	margin-bottom: 2px;
}

.logo-ico {
	margin-top: 4px;
	font-weight: 500;
}

/* Print Styles */
@media print {
	.czech-invoice-body {
		background: #fff;
		padding: 0;
	}

	.invoice-container {
		box-shadow: none;
		padding: 15mm;
		max-width: 100%;
		position: relative;
	}

	.print-actions {
		display: none;
	}

	.invoice-items-table {
		page-break-inside: avoid;
	}

	.invoice-section {
		page-break-inside: avoid;
	}

	.company-logo {
		margin-top: 30px;
		text-align: right;
	}

	.logo-content {
		box-shadow: none;
		border: 4px solid #1e3a8a;
	}
}

/* Frontend button styles */
.czech-invoice-print-button {
	margin-bottom: 20px;
}

.czech-invoice-print-button .button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
}

.czech-invoice-print-button .button:hover {
	background-color: #005a87;
	color: #fff;
}