/* 台账一键出合同 / 结算单的弹窗（public/documents.js） */
.docs-form h2 { margin-top: 16px; }
.docs-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.docs-tabs [role="tab"] { padding: 7px 18px; border-radius: 999px; border: 1px solid #c7d3e0; background: #fff; color: #334155; font-weight: 600; cursor: pointer; }
.docs-tabs [role="tab"].is-on { background: #173b60; border-color: #173b60; color: #fff; }
.docs-tabs .ghost { margin-left: auto; font-size: 12px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 8px 0; align-items: end; }
.docs-field { display: flex; flex-direction: column; gap: 3px; }
.docs-field label { font-size: 12px; color: #475569; }
.docs-field input, .docs-field textarea { width: 100%; }
.docs-wide { grid-column: span 2; }
.docs-seal { grid-column: 1 / -1; margin: 2px 0 0; }
.docs-lines { width: 100%; border-collapse: collapse; margin-top: 10px; }
.docs-lines th { text-align: left; font-size: 12px; color: #475569; font-weight: 600; padding: 4px 6px; background: #f6f8fb; border-bottom: 1px solid #e1e7ef; }
.docs-lines td { padding: 4px 4px; vertical-align: middle; }
.docs-lines td:nth-child(1) { width: 52%; }
.docs-lines td:nth-child(2) { width: 16%; }
.docs-lines td:nth-child(3) { width: 11%; }
.docs-lines td input { width: 100%; }
.docs-lines td input:placeholder-shown[required] { border-color: #f59e0b; background: #fffbeb; }
.docs-sub { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: #334155; }
.docs-lines-foot { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 10px; }
.docs-total { font-size: 15px; color: #173b60; }
.docs-history { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e1e7ef; font-size: 12px; color: #475569; }
.docs-history:empty { display: none; }
.docs-history-row { margin-top: 4px; }
.docs-result .business-actions { margin: 14px 0; }
.docs-download { display: inline-block; padding: 9px 18px; border-radius: 8px; border: 1px solid #c7d3e0; color: #173b60; font-weight: 600; text-decoration: none; background: #fff; }
.docs-download.primary { background: #173b60; border-color: #173b60; color: #fff; }
.docs-section { border: 1px solid #e1e7ef; border-radius: 8px; padding: 8px; margin: 8px 0; background: #f6f8fb; }
.docs-section-head { display: flex; gap: 8px; margin-bottom: 6px; }
.docs-section-head input { flex: 1; font-weight: 600; }
.docs-section textarea { width: 100%; font-size: 13px; line-height: 1.6; }
@media (max-width: 720px) { .docs-grid { grid-template-columns: 1fr; } .docs-wide { grid-column: auto; } }
