/* Scoped document styling; loaded by this widget only. */
[data-tool="security-deposit-settlement"] textarea { width:100%; min-height:90px; font-size:16px; }
[data-tool="security-deposit-settlement"] .deposit-letter { white-space:pre-wrap; overflow-wrap:anywhere; font:15px/1.6 Arial,sans-serif; color:#172e29; }
[data-tool="security-deposit-settlement"] .tool-field input[aria-invalid="true"],
[data-tool="security-deposit-settlement"] textarea[aria-invalid="true"] { border:2px solid #a32626; }
@media print {
 @page { margin:16mm; }
 .deposit-document-page .tools-article-head,
 .deposit-document-page .tools-lead,
 .deposit-document-page .tools-body,
 .deposit-document-page .tools-notice,
 .deposit-document-page > p { display:none !important; }
 .deposit-document-page .tools-page { padding:0 !important; margin:0 !important; }
 .deposit-document-page .tool-result-col,
 .deposit-document-page .tool-ok { display:block; margin:0; padding:0; }

 [data-tool="security-deposit-settlement"] > .tool-form,
 [data-tool="security-deposit-settlement"] .tool-main,
 [data-tool="security-deposit-settlement"] .tool-actions,
 [data-tool="security-deposit-settlement"] .tool-hint,
 [data-tool="security-deposit-settlement"] .tool-message,
 [data-tool="security-deposit-settlement"] .tool-tag { display:none !important; }
 [data-tool="security-deposit-settlement"] { display:block !important; }
 [data-tool="security-deposit-settlement"] .deposit-letter { border:0; padding:0; background:white; color:black; font:11pt/1.5 Arial,sans-serif; break-inside:auto; box-shadow:none; }
}

/* Grid gaps also work when a conditional group between two fields is hidden. */
[data-tool="security-deposit-settlement"] .tool-form form,
[data-tool="security-deposit-settlement"] .tool-form [data-show-when],
[data-tool="security-deposit-settlement"] [data-deposit-rows] {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}
[data-tool="security-deposit-settlement"] .tool-form form > *,
[data-tool="security-deposit-settlement"] [data-deposit-row] {
	margin: 0;
}
[data-tool="security-deposit-settlement"] [data-deposit-rows]:empty {
	display: none;
}
[data-tool="security-deposit-settlement"] [data-deposit-row] .tool-field + .tool-field,
[data-tool="security-deposit-settlement"] [data-deposit-row] > .tool-btn {
	margin-top: 1rem;
}
[data-tool="security-deposit-settlement"] .tool-field textarea {
	box-sizing: border-box;
	padding: .625rem .75rem;
	border: 1px solid rgba(0, 0, 0, .3);
	border-radius: 6px;
	font-family: inherit;
}
