/**
 * document-tool.css
 *
 * Styles for the shared document-generator front-end (Invoice, Receipt,
 * Quote, Purchase Order). Loaded after click-and-solve.css so it can
 * rely on the shared --cas-primary / --cas-radius custom properties.
 */

.cas-document-tool .cas-items-table td,
.cas-document-tool .cas-items-table th {
	vertical-align: middle;
}

.cas-document-tool .cas-items-table input {
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	padding: 0.25rem 0.5rem;
	width: 100%;
}

.cas-document-tool .cas-item-remove {
	background: none;
	border: none;
	color: #b02a37;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.cas-document-tool .cas-totals-list dd {
	margin-bottom: 0.35rem;
}

.cas-document-tool .cas-action-message {
	min-height: 1.25rem;
}

.cas-document-tool .cas-action-message.text-success {
	color: #1a7f37;
}

.cas-document-tool .cas-action-message.text-danger {
	color: #b02a37;
}

.cas-invoice-number-tool .cas-number-preview li {
	font-family: "SFMono-Regular", Consolas, monospace;
	padding: 0.15rem 0;
	border-bottom: 1px dashed #e5e7eb;
}

/* Print: hide interactive chrome (buttons, add-item, action panel) and
 * flatten form fields to plain text so the printed page reads like a
 * finished document rather than an editable form. */
@media print {
	.cas-document-tool .cas-add-item,
	.cas-document-tool .cas-items-table th:last-child,
	.cas-document-tool .cas-items-table td:last-child,
	.cas-document-tool .card-body:has(.cas-action-print) {
		display: none !important;
	}

	.cas-document-tool .card {
		box-shadow: none !important;
		border: none !important;
	}

	.cas-document-tool input,
	.cas-document-tool textarea,
	.cas-document-tool select {
		border: none !important;
		background: transparent !important;
		pointer-events: none;
		padding: 0 !important;
	}
}
