.mfn-documents--branch .mfn-documents__hero { border-color:rgba(45,63,145,.14); background:linear-gradient(135deg,#fff 0%,#eef2ff 100%); }
.mfn-documents--branch .mfn-documents__hero h2 { font-size:32px; }
.mfn-documents--branch .mfn-documents__toolbar #documentScope { display:none; }
.mfn-document-branch-steps { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 16px; border:1px solid rgba(45,63,145,.14); border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(34,50,105,.04); color:var(--mfn-muted); font-size:12px; font-weight:700; }
.mfn-document-branch-steps span { display:inline-flex; align-items:center; gap:7px; }
.mfn-document-branch-steps b { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#edf0ff; color:var(--mfn-primary); font-size:11px; }
.mfn-document-branch-steps .is-active { color:var(--mfn-primary); }
.mfn-document-branch-steps .is-active b { background:var(--mfn-primary); color:#fff; }
.mfn-document-branch-steps i { color:#aeb6d1; font-size:19px; font-style:normal; }
.mfn-document-flow-context { align-items:center; }
.mfn-document-branch-path { display:flex; flex-direction:column; gap:3px; }
.mfn-document-branch-path strong { font-size:13px; }
.mfn-document-branch-path span { color:var(--mfn-muted); font-size:11px; }
.mfn-creditos, .mfn-document-types { display:flex; flex-direction:column; gap:16px; }
.mfn-creditos__hero, .mfn-document-types__hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 28px; border:1px solid rgba(45,63,145,.1); border-radius:20px; background:linear-gradient(135deg,#fff 0%,#f4f6ff 100%); box-shadow:0 16px 38px rgba(34,50,105,.06); }
.mfn-creditos__hero h1, .mfn-document-types__hero h1 { margin:4px 0 6px; color:var(--mfn-primary); font-size:32px; letter-spacing:-.8px; }
.mfn-creditos__hero p, .mfn-document-types__hero p { margin:0; color:var(--mfn-muted); }
.mfn-creditos__toolbar { display:flex; align-items:center; gap:10px; padding:12px; }
.mfn-creditos__toolbar > div:first-child { flex:1 1 auto; min-width:220px; }
.mfn-creditos__toolbar .dx-textbox { width:100%; }
.mfn-creditos #creditGrid, .mfn-document-types #documentTypesGrid { padding:12px; overflow:hidden; }
.mfn-credit-editor { display:flex; flex-direction:column; gap:12px; padding:4px 2px; }
.mfn-credit-editor__error { min-height:20px; color:#bb3e3e; font-size:13px; }
.mfn-document-preview-popup .dx-overlay-content { overflow:hidden; }
.mfn-document-preview-popup .dx-popup-content { display:flex; min-height:0; padding:16px; }
.mfn-document-preview-popup .mfn-document-preview { width:100%; }
@media (max-width:820px) {
  .mfn-creditos__hero, .mfn-document-types__hero { padding:20px; }
  .mfn-document-branch-steps { align-items:flex-start; flex-direction:column; gap:7px; }
  .mfn-document-branch-steps i { display:none; }
}
@media (max-width:640px) {
  .mfn-documents--branch .mfn-documents__hero h2 { font-size:25px; }
  .mfn-document-flow-context { align-items:flex-start; }
  .mfn-creditos__hero, .mfn-document-types__hero { align-items:flex-start; flex-direction:column; padding:18px; }
  .mfn-creditos__hero h1, .mfn-document-types__hero h1 { font-size:26px; }
  .mfn-creditos__toolbar { align-items:stretch; flex-direction:column; }
  .mfn-creditos__toolbar > div:first-child { min-width:0; }
  .mfn-creditos #creditGrid, .mfn-document-types #documentTypesGrid { padding:8px; }
  .mfn-document-preview-popup .dx-overlay-content { width:100vw !important; max-width:100vw !important; height:100vh !important; max-height:100vh !important; border-radius:0; }
  .mfn-document-preview-popup .dx-popup-content { padding:10px; }
  .mfn-document-preview-popup .mfn-document-preview__viewer { border-radius:8px; }
}
