/* Estilos aislados para documentos V10.14. */
.nvx-document-form { padding: 28px !important; max-width: 1150px; margin: 0 auto; }
.nvx-form-heading { display: flex; gap: 18px; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.nvx-form-heading h3 { font-size: 23px; color: #163756; margin: 6px 0; }
.nvx-overline { font-size: 11px; letter-spacing: .1em; font-weight: 700; color: #54738b; }
.nvx-badge { flex-shrink: 0; font-size: 11px; color: #285872; padding: 8px 10px; border-radius: 7px; background: #eaf3f7; }
.nvx-help { font-size: 13px; line-height: 1.65; color: #506579; margin: 7px 0 16px; }
.nvx-template-note { padding: 10px 14px; background: #f1f4f7; color: #586876; font-size: 12px; border-left: 3px solid #8195a7; margin: 12px 0 22px; }
.nvx-group { border: 1px solid #d8e2eb; padding: 18px; border-radius: 10px; margin: 22px 0; min-width: 0; background: white; }
.nvx-group legend { padding: 0 8px; font-weight: 700; font-size: 15px; color: #1d4967; }
.nvx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nvx-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nvx-field label, .nvx-asset > label { font-size: 12px; line-height: 1.5; color: #29455c; font-weight: 600; display: block; }
.nvx-field label span { color: #b51a32; }
.nvx-field input, .nvx-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 42px; border: 1px solid #c9d5e0; border-radius: 6px; padding: 10px 11px; font-size: 14px; font-family: inherit; background: #fff; color: #172f42; }
.nvx-field input:focus, .nvx-field textarea:focus { outline: 2px solid #5fa9d0; outline-offset: 1px; }
.nvx-field input[readonly] { background: #f0f5f8; color: #436279; }
.nvx-field textarea { resize: vertical; }
.nvx-span { grid-column: 1 / -1; }
.nvx-med-card { border: 1px solid #d7e4eb; background: #f8fbfd; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.nvx-med-head, .nvx-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.nvx-med-head h4 { margin: 0; color: #28465b; font-size: 15px; }
.nvx-button { border: 1px solid #cbd8e2; border-radius: 6px; padding: 11px 17px; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; font-family: inherit; }
.nvx-button-primary { background: #15527a; border-color: #15527a; color: white; }
.nvx-button-muted { background: #f4f8fb; color: #28485f; }
.nvx-button:disabled { opacity: .55; cursor: wait; }
.nvx-button:hover:not(:disabled) { filter: brightness(.95); }
.nvx-form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nvx-asset { border: 1px dashed #bbceda; border-radius: 8px; padding: 13px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nvx-asset input[type=file] { width: 100%; font-size: 11px; }
.nvx-asset span { font-size: 11px; color: #516c7f; }
.nvx-link { border: none; padding: 4px 0; background: none; color: #196e9c; cursor: pointer; font-size: 12px; text-align: left; }
.nvx-status { color: #215c48; font-size: 13px; line-height: 1.6; margin-top: 15px; white-space: pre-wrap; }
.nvx-status-error { color: #ad1d33; }
.nvx-preview { background: #eef3f7; padding: 16px; border-radius: 10px; margin-top: 25px; }
.nvx-preview[hidden] { display: none; }
.nvx-preview iframe { width: 100%; height: 720px; border: 1px solid #cad7e1; background: white; }
.history-actions .btn-download-doc { background: #e9f3f8; border: 1px solid #c9dde7; border-radius: 5px; color: #225b7a; font-weight: 600; padding: 7px 10px; cursor: pointer; }
.nvx-detail { padding: 12px 0; border-top: 1px solid #dce5eb; }
.nvx-detail h4 { color: #234b65; margin: 6px 0 14px; }
.nvx-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.nvx-detail dt { font-size: 11px; color: #667e90; margin-bottom: 3px; }
.nvx-detail dd { font-size: 13px; color: #273e50; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nvx-preview-page { margin: 0; background: #eef3f7; font-family: Arial, sans-serif; color: #183447; }
.nvx-preview-shell { max-width: 1160px; margin: 30px auto; padding: 0 16px; }
.nvx-preview-page header { padding: 18px 4px 25px; }
.nvx-preview-page header h1 { margin: 8px 0; font-size: 27px; }
.nvx-preview-page header p { color: #4f697b; line-height: 1.7; }
.nvx-preview-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.nvx-preview-nav button.active { background: #15527a; color: white; }
.nvx-preview-page .nvx-document-form { background: white; border-radius: 12px; box-shadow: 0 5px 25px #1a344710; }
@media (max-width: 850px) { .nvx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nvx-form-heading { flex-direction: column; } }
@media (max-width: 550px) { .nvx-grid, .nvx-detail dl { grid-template-columns: 1fr; } .nvx-document-form { padding: 17px !important; } .nvx-group { padding: 14px; } .nvx-form-actions { flex-direction: column; } .nvx-preview iframe { height: 550px; } .nvx-form-heading h3 { font-size: 20px; } }
