.wsc-invoice {
	--wsc-invoice-primary: #1f6f43;
	--wsc-invoice-accent: #f2f6f4;
	max-width: 800px;
	margin: 0 auto;
	font-family: Arial, Helvetica, sans-serif;
	color: #222;
}
.wsc-invoice-logo { display: block; max-height: 70px; max-width: 240px; margin-bottom: 10px; }
.wsc-invoice-custom-header { margin-bottom: 1.5em; color: var( --wsc-invoice-primary ); }
.wsc-invoice-custom-footer { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var( --wsc-invoice-accent ); font-size: 0.9em; color: #555; }
.wsc-invoice-header { width: 100%; margin-bottom: 2em; }
.wsc-invoice-header td { vertical-align: top; }
.wsc-invoice-meta { text-align: right; }
.wsc-invoice-meta h2 { color: var( --wsc-invoice-primary ); margin-bottom: 0.3em; }
.wsc-invoice h4 { color: var( --wsc-invoice-primary ); }
.wsc-invoice-items { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.wsc-invoice-items th { background: var( --wsc-invoice-accent ); padding: 0.6em; text-align: left; }
.wsc-invoice-items td { border-bottom: 1px solid #ddd; padding: 0.6em; text-align: left; }
.wsc-invoice-items th:nth-child(2), .wsc-invoice-items td:nth-child(2),
.wsc-invoice-items th:nth-child(3), .wsc-invoice-items td:nth-child(3),
.wsc-invoice-items th:nth-child(4), .wsc-invoice-items td:nth-child(4) { text-align: right; }
.wsc-invoice-totals { width: 300px; margin-left: auto; }
.wsc-invoice-totals td { padding: 0.35em 0.6em; text-align: right; }
.wsc-invoice-grand-total td { border-top: 2px solid var( --wsc-invoice-primary ); font-size: 1.1em; }
.wsc-invoice-actions { text-align: right; margin-bottom: 1em; }
.wsc-invoice-actions button {
	background: var( --wsc-invoice-primary );
	color: #fff;
	border: none;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 0.5em;
}
.wsc-invoice-actions button:disabled { opacity: 0.6; cursor: default; }
@media print {
	.wsc-invoice-actions { display: none; }
}
