.document-practice { margin-block:1rem 2rem; padding:1rem; border:1px solid var(--color-border); border-radius:var(--radius); background:var(--color-surface); }
.document-practice h4,.document-practice h5 { font-size:1.1rem; margin-block:1rem; }
.document-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-block:1rem; }
.document-actions button { white-space:normal; }
.document-create { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; margin-block:1rem; }
.document-field { display:flex; flex-direction:column; gap:.4rem; margin-block:.8rem; min-width:0; max-width:100%; }
.document-field>span { font-weight:600; }
.document-field input,.document-field select,.document-field textarea { width:100%; min-width:0; border:1px solid var(--color-border); background:var(--color-surface); color:var(--color-text); border-radius:.25rem; padding:.6rem; }
.document-field textarea { resize:vertical; }
.document-create .document-field { flex:1 1 18rem; }
.document-practice .solid-button { padding:.6rem 1rem; min-height:40px; }
.document-status { padding:.75rem; background:var(--color-primary-soft); }
.document-item { border-block-end:1px solid var(--color-border); padding-block:.8rem; overflow-wrap:anywhere; }
.document-editor { max-width:65rem; }
.document-editor details { margin-block:1rem; border:1px solid var(--color-border); border-radius:var(--radius); padding:.8rem; }
.document-editor summary,.document-models summary,.document-sample-table summary { cursor:pointer; font-weight:600; }
.document-editor fieldset { border:1px solid var(--color-border); min-width:0; padding:1rem; }
.document-repeat { border-block-end:1px solid var(--color-border); padding-block:.75rem; }
.document-models { margin-block:1.5rem; overflow-wrap:anywhere; }
.document-models li { margin-block:.7rem; }
.document-preview { padding:1rem; border:1px solid var(--color-border); white-space:pre-wrap; overflow-wrap:anywhere; }
#document-print { display:none; }
@media print {
  body>*:not(#document-print) { display:none !important; }
  body>#document-print { display:block !important; color:#000; background:#fff; border:0; font:11pt Arial,sans-serif; }
  #document-print p { break-inside:avoid; }
}

.mobility-practice-page { max-width:76rem; margin-inline:auto; }
.practice-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1rem; margin-block:1rem; }
.practice-fields label,.practice-field { display:flex; flex-direction:column; gap:.4rem; margin-block:.8rem; min-width:0; }
.practice-fields input,.practice-fields select,.practice-field input,.practice-field select,.practice-field textarea { width:100%; min-width:0; border:1px solid var(--color-border); border-radius:.25rem; padding:.6rem; background:var(--color-surface); color:var(--color-text); }
.practice-check { display:flex; align-items:flex-start; gap:.6rem; margin-block:1rem; }
.practice-check input { flex-shrink:0; margin-top:.45rem; }
.practice-result { border-inline-start:4px solid var(--color-primary); padding:1rem; margin-block:1rem; overflow-wrap:anywhere; }
.mobility-practice-page fieldset { min-width:0; border:1px solid var(--color-border); padding:1rem; }
.mobility-practice-page button { white-space:normal; }

/* Editor de los modelos originales, independiente de la carcasa de BM. */
.document-editor-open .app-header,.document-editor-open .platform-bar,.document-editor-open .app-navigation,.document-editor-open .app-footer { display:none; }
body.document-editor-open .app-layout { display:block; }
.document-editor-open main { padding:0; }
.document-editor-header { display:flex; justify-content:space-between; gap:1rem; padding:18px 32px; background:#06468e; color:white; font-size:1.25rem; }
.document-editor-content { max-width:1200px; padding:20px 30px; margin:auto; }
.document-editor-content h1 { font-size:1.6rem; }
.document-editor-form fieldset { border:1px solid #b8b8b8; margin:24px 0; padding:20px; min-width:0; background:white; }
.document-editor-form legend { font-size:1.15rem; padding:0 8px; }
.document-editor-form details { margin:16px 0; padding:12px; border:1px solid #ccc; }
.document-editor-form summary { cursor:pointer; font-weight:600; }
.document-editor-form textarea { min-height:88px; font:inherit; }
.document-editor-actions { display:flex; flex-wrap:wrap; gap:12px; position:sticky; bottom:0; padding:16px; background:#e8e8e8; border-top:1px solid #bbb; z-index:2; }
.editor-help { border-radius:50%; border:1px solid #666; float:right; }
.bm-mobility-footer { display:flex; gap:12px; justify-content:flex-end; position:sticky; bottom:0; background:#eee; padding:14px; z-index:2; }
.bm-form-section { margin:18px 0; border:1px solid #aaa; background:white; }
.bm-form-section>summary { cursor:pointer; padding:10px 16px; background:#f0f1f3; font-size:1.15rem; }
.bm-form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:20px; align-items:start; }
.bm-record-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.bm-record-field>span { font-weight:600; }
.bm-record-field input:not([type=checkbox]),.bm-record-field select,.bm-record-field textarea { width:100%; min-width:0; max-width:100%; padding:9px; border:1px solid #aaa; border-radius:3px; font:inherit; }
.bm-record-field textarea { min-height:84px; resize:vertical; }
.bm-record-field.bm-check { flex-direction:row; align-items:center; }
.bm-record-field[hidden] { display:none; }
.mobility-record-heading { display:flex; justify-content:space-between; gap:12px; margin:16px 0; }
[data-bm-document-list] .bm-table { width:100%; border-collapse:collapse; }
[data-bm-document-list] .bm-table th,[data-bm-document-list] .bm-table td { text-align:left; padding:12px; border-bottom:1px solid #ddd; white-space:nowrap; }
[data-bm-document-list] .bm-table th { border-bottom:2px solid #333; }
@media(max-width:700px) {
 .bm-form-fields { grid-template-columns:minmax(0,1fr); padding:12px; }
 .document-editor-content { padding:12px; }
 .document-editor-header { padding:12px; flex-wrap:wrap; }
 .document-editor-form fieldset { padding:12px; }
}
@media print {
 @page { size:A4; margin:0; }
 #document-print section.docx { box-shadow:none; margin:0; }
 #document-print .docx p { break-inside:auto; }
 #document-print .docx table { max-width:100%; }
}
.document-editor-actions button { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

.bm-choice-dropdown { position:relative; min-width:0; }
.bm-choice-dropdown>summary { cursor:pointer; padding:9px 12px; border:1px solid #aaa; border-radius:3px; font-weight:normal; background:white; }
.bm-choice-dropdown>summary[aria-disabled=true] { color:#777; cursor:default; background:#eee; }
.bm-choice-popup { position:absolute; inset-inline:0; top:100%; z-index:9; border:1px solid #888; background:white; box-shadow:0 4px 12px #0003; padding:8px; }
.bm-choice-options { max-height:220px; overflow:auto; }
.bm-choice-options button { display:block; width:100%; text-align:left; border:0; border-radius:0; padding:8px; background:white; white-space:normal; }
.bm-choice-options button[aria-selected=true] { background:#eaf2fd; color:#06468e; }
.bm-choice-options button:hover { background:#d7e8ff; }
.bm-choice-options button:disabled { color:#999; }
.bm-selection-tags { display:flex; flex-wrap:wrap; gap:5px; }
.bm-selection-tag { display:inline-flex; align-items:center; gap:8px; border:1px solid #d9dfea; border-radius:14px; background:#edf1fc; padding:1px 8px; max-width:100%; font-size:14px; overflow-wrap:anywhere; }
.bm-selection-tag button { border:0; background:transparent; padding:0 3px; color:#333; }
.bm-choice-limit { font-size:12px; margin:4px; color:#06468e; }
.bm-field-error { color:#a21d3a; font-size:12px; }
.bm-draft-notice { background:#fff6e5; padding:12px; }
#mobility-validation-summary { max-height:180px; overflow:auto; color:#a21d3a; }
#mobility-validation-summary:empty { display:none; }
.bm-record-field [aria-invalid=true]:not([type=checkbox]) { border-color:#b95d70; }
