/* Marco NeuralFlow. Los módulos no migrados conservan sus componentes propios. */
.nf-icon{display:inline-block;flex-shrink:0;vertical-align:-.18em;width:20px;height:20px}
.nf-ui-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--sg-border);border-radius:10px;background:var(--sg-surface);color:var(--sg-text);font:500 14px/1.4 var(--sg-font);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s}
.nf-ui-button:hover{color:var(--sg-text);background:var(--sg-soft);border-color:var(--sg-primary)}
.nf-ui-button-primary{background:var(--sg-primary);color:#fff;border-color:var(--sg-primary);font-weight:600}
.nf-ui-button-primary:hover{background:var(--sg-primary-hover);color:#fff}
.nf-icon-button{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--sg-muted);cursor:pointer}
.nf-icon-button:hover{background:var(--sg-soft);color:var(--sg-text)}
.nf-ui-button:disabled{opacity:.6;cursor:not-allowed}
.nf-login :is(a,button,input):focus-visible,.sigeda-nf :is(.sidebar a,.sidebar button,.sidebar summary,.nf-topbar a,.nf-topbar button,.nf-topbar input):focus-visible,.nf-dashboard :is(a,button):focus-visible{outline:2px solid var(--sg-primary);outline-offset:3px}
.nf-login ::selection,.sigeda-nf ::selection{background:#c8d9ff;color:#10234b}
.nf-login input,.sigeda-nf .nf-topbar input{caret-color:var(--sg-primary)}
.sigeda-body.sigeda-nf{margin:0;background:var(--sg-bg);color:var(--sg-text);font:400 14px/1.5 var(--sg-font)}
.sigeda-body.sigeda-nf .app{min-height:100svh;background:none}
.sigeda-body.sigeda-nf .main{min-width:0;margin-left:256px;width:calc(100% - 256px);flex:1}
.sigeda-body.sigeda-nf .content{padding:24px;min-width:0}
.sigeda-body.sigeda-nf .sidebar{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;width:256px;min-width:0;height:100svh;background:var(--sg-sidebar);color:var(--sg-nav-text);box-shadow:none;border:0;z-index:1040;transform:none}
.sigeda-body.sigeda-nf .sidebar-brand{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;background:none;border:0;border-bottom:1px solid #ffffff12}
.nf-brand-link{display:flex;gap:10px;align-items:center;min-width:0;color:#fff;text-decoration:none}
.sigeda-body.sigeda-nf .sidebar-brand img{width:34px;height:34px;flex:0 0 34px;object-fit:contain;border-radius:9px;background:#fff;padding:3px;box-shadow:none}
.sigeda-body.sigeda-nf .brand-name{color:#fff;font-size:16px;font-weight:700;letter-spacing:0;white-space:nowrap}
.sigeda-body.sigeda-nf .brand-sub{display:none}
.nf-menu-compact{background:none;color:#b6c2dc;border:0;width:32px;height:36px;border-radius:8px;display:grid;place-items:center;flex-shrink:0}
.nf-menu-compact:hover{color:#fff;background:#ffffff12}
.sigeda-body.sigeda-nf .sidebar-close{display:none;color:#d6e1f3;background:none;border:0;width:36px;height:40px;box-shadow:none}
.sigeda-body.sigeda-nf .nav-scroll{padding:12px;overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#344563 transparent}
.sigeda-body.sigeda-nf .nav-title{margin:12px 10px 8px;color:#a2b2ce;font-size:10px;font-weight:600;letter-spacing:.07em;line-height:1.4}
.sigeda-body.sigeda-nf .side-link{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 12px;margin:2px 0;border:0;border-radius:10px;background:none;box-shadow:none;color:#b6c2dc;font-size:13px;font-weight:400;line-height:1.45;white-space:normal;text-decoration:none;transform:none}
.sigeda-body.sigeda-nf .side-link>.nf-icon{width:18px;height:18px;color:inherit}
.sigeda-body.sigeda-nf .side-link:hover{background:#ffffff0f;color:#fff;transform:none;box-shadow:none}
.sigeda-body.sigeda-nf .side-link.active{background:var(--sg-primary);color:#fff;box-shadow:none;font-weight:600}
.sigeda-body.sigeda-nf .side-link.active:before{display:none}
.sigeda-body.sigeda-nf .nav-module{margin:3px 0;padding:0;border:0;background:none;border-radius:0;overflow:visible}
.sigeda-body.sigeda-nf .nav-module summary{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:40px;padding:9px 12px;border:0;border-radius:10px;list-style:none;background:none;color:#b6c2dc;font:400 13px/1.45 var(--sg-font);letter-spacing:0;text-transform:none}
.sigeda-body.sigeda-nf .nav-module summary::-webkit-details-marker{display:none}
.sigeda-body.sigeda-nf .nav-module summary>span{display:flex;gap:10px;align-items:center;min-width:0}
.sigeda-body.sigeda-nf .nav-module summary .nf-icon{width:18px;height:18px;color:inherit}
.sigeda-body.sigeda-nf .nav-module summary>.nf-icon{width:12px;height:12px}
.sigeda-body.sigeda-nf .nav-module summary:hover{background:#ffffff0f;color:#fff}
.sigeda-body.sigeda-nf .nav-module[open]>summary{background:#ffffff0a;color:#fff}
.sigeda-body.sigeda-nf .nav-module.nf-current-group>summary{background:var(--sg-primary);color:#fff}
.sigeda-body.sigeda-nf .nav-module[open]>summary>.nf-icon{transform:rotate(180deg)}
.sigeda-body.sigeda-nf .nav-module-links{padding:0 0 0 10px;margin:3px 0 8px 21px;border:0;border-left:1px solid #ffffff1f;background:none}
.sigeda-body.sigeda-nf .nav-module-links .side-link{font-size:12px;min-height:34px;padding:7px 10px;border-radius:8px}
.sigeda-body.sigeda-nf .nav-module-links .side-link>.nf-icon{display:none}
.sigeda-body.sigeda-nf .nav-module-links .side-link.active{background:#ffffff1a;color:#fff}
.sigeda-body.sigeda-nf .nav-count{margin-left:auto;min-width:20px;padding:1px 6px;border-radius:12px;background:#dc2626;color:#fff;font-size:10px}
.sigeda-body.sigeda-nf .sidebar :is(a,button,summary):focus-visible{outline-color:#a6c7ff}
.nf-sidebar-footer{flex-shrink:0;padding:12px;border-top:1px solid #ffffff0a}
.sigeda-body.sigeda-nf .sidebar-user{display:flex;align-items:center;gap:10px;margin:0;padding:9px 10px;background:#ffffff0a;border:0;border-radius:10px;text-decoration:none;min-width:0}
.sigeda-body.sigeda-nf .sidebar-user>span:nth-child(2){min-width:0;flex:1}
.sigeda-body.sigeda-nf .sidebar-user strong{display:block;color:#fff;font-size:12px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.sigeda-body.sigeda-nf .sidebar-user small{display:block;color:#b6c2dc;font-size:11px;line-height:1.4}
.sigeda-body.sigeda-nf .sidebar-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#334f7c;color:#fff;box-shadow:none;font:600 12px var(--sg-font)}
.nf-topbar{position:sticky;top:0;z-index:1030;display:flex;gap:14px;align-items:center;min-height:68px;padding:10px 24px;background:var(--sg-surface);border-bottom:1px solid var(--sg-border)}
.nf-topbar .menu-toggle{display:none}
.nf-header-context{min-width:0;color:var(--sg-muted);font-size:12px}
.nf-header-context strong{color:var(--sg-text);font-size:13px;font-weight:600}
.nf-header-context span{display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nf-topbar .topbar-search{display:flex;align-items:center;gap:8px;width:min(100%,400px);height:40px;margin:0;padding:0 12px;background:var(--sg-bg);border:1px solid transparent;border-radius:10px;min-width:0;color:var(--sg-muted)}
.nf-topbar .topbar-search input{width:100%;min-width:0;border:0;background:transparent;outline:0;color:var(--sg-text);font:400 13px var(--sg-font)}
.nf-topbar .topbar-search input::placeholder{color:var(--sg-muted);opacity:1}
.nf-topbar .topbar-search:focus-within{border-color:var(--sg-primary);box-shadow:0 0 0 3px var(--sg-soft)}
.nf-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;flex-shrink:0}
.nf-topbar .topbar-clock{display:block;border:0;padding:0 8px;background:transparent;white-space:nowrap;font-size:11px;color:var(--sg-muted)}
.nf-topbar .topbar-clock strong{display:block;font-size:11px;font-weight:500;color:var(--sg-text)}
.nf-topbar .topbar-clock small{font-size:10px;color:var(--sg-muted)}
.nf-topbar .notification-trigger{position:relative;display:grid;place-items:center;border:0;width:44px;height:44px;padding:0;border-radius:10px;background:transparent;color:var(--sg-muted)}
.nf-topbar .notification-trigger:hover{background:var(--sg-soft);color:var(--sg-text)}
.nf-topbar .notification-trigger>.notification-badge{position:absolute;right:-1px;top:-1px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:2px solid var(--sg-surface);border-radius:12px;background:#b91c1c;color:#fff;font:700 10px/1 var(--sg-font);font-variant-numeric:tabular-nums;pointer-events:none}
.nf-topbar .topbar-logout{margin:0}
.nf-topbar .topbar-logout button{font-size:12px;min-height:38px;padding:0 10px}
.nf-topbar .notification-dropdown{width:min(360px,calc(100vw - 24px));padding:0;border:1px solid var(--sg-border);border-radius:14px;background:var(--sg-surface);color:var(--sg-text);box-shadow:var(--sg-shadow)}
.nf-topbar .notification-dropdown-head{display:flex;justify-content:space-between;padding:16px;border-bottom:1px solid var(--sg-border);font-size:13px}
.nf-topbar .notification-mini{display:grid;gap:4px;padding:14px 16px;text-decoration:none;color:var(--sg-text);border-bottom:1px solid var(--sg-border)}
.nf-topbar .notification-mini span,.nf-topbar .notification-mini small{font-size:12px;color:var(--sg-muted)}
.nf-topbar .notification-mini:hover{background:var(--sg-soft)}
.nf-topbar .notification-empty{padding:20px;color:var(--sg-muted);font-size:13px}
.nf-profile-link{display:grid;place-items:center;width:34px;height:34px;margin-left:4px;border-radius:50%;background:#e5edfc;color:#244779;font-size:11px;font-weight:700;text-decoration:none}
.sigeda-body.sigeda-nf .app-pie{margin:24px 0 0;padding:16px 0 0;border-top:1px solid var(--sg-border);font-size:11px;color:var(--sg-muted);text-align:center}
.sigeda-body.sigeda-nf .app-pie strong{color:var(--sg-muted);font-weight:500}
.sigeda-body.sigeda-nf .skip-link{position:fixed;left:16px;top:12px;z-index:1100;padding:10px 16px;background:var(--sg-surface);color:var(--sg-text);border:1px solid var(--sg-primary);border-radius:8px;transform:translateY(-180%)}
.sigeda-body.sigeda-nf .skip-link:focus{transform:none}
.sigeda-body.sigeda-nf .sidebar-backdrop{display:none}
@media(min-width:992px){
  .nf-compact .sigeda-body.sigeda-nf .sidebar{width:72px}
  .nf-compact .sigeda-body.sigeda-nf .main{margin-left:72px;width:calc(100% - 72px)}
  .nf-compact .sigeda-body.sigeda-nf .sidebar-brand{height:104px;flex-direction:column;padding:16px 0;gap:10px}
  .nf-compact .sigeda-body.sigeda-nf .brand-copy,.nf-compact .sigeda-body.sigeda-nf .nav-title,.nf-compact .sigeda-body.sigeda-nf .nav-module-links,.nf-compact .sigeda-body.sigeda-nf .sidebar-user>span:nth-child(2),.nf-compact .sigeda-body.sigeda-nf .sidebar-user-arrow{display:none}
  .nf-compact .sigeda-body.sigeda-nf .nav-scroll{padding:12px 10px}
  .nf-compact .sigeda-body.sigeda-nf .side-link{font-size:0;justify-content:center;gap:0;min-height:44px;padding:10px}
  .nf-compact .sigeda-body.sigeda-nf .side-link small,.nf-compact .sigeda-body.sigeda-nf .nav-count{display:none}
  .nf-compact .sigeda-body.sigeda-nf .nav-module summary{justify-content:center;padding:10px;min-height:44px}
  .nf-compact .sigeda-body.sigeda-nf .nav-module summary>span{font-size:0;gap:0}
  .nf-compact .sigeda-body.sigeda-nf .nav-module summary>.nf-icon{display:none}
  .nf-compact .sigeda-body.sigeda-nf .sidebar-user{padding:5px;justify-content:center}
}
@media(max-width:1199.98px){.nf-topbar .topbar-clock{display:none}.nf-topbar{gap:10px}.nf-header-context{display:none}}
@media(max-width:991.98px){
  .sigeda-body.sigeda-nf .sidebar{transform:translateX(-100%);width:256px;max-width:calc(100vw - 48px);visibility:hidden}
  .sigeda-body.sigeda-nf .sidebar.open{transform:none;visibility:visible}
  .sigeda-body.sigeda-nf .main{margin-left:0;width:100%}
  .sigeda-body.sigeda-nf .sidebar-close{display:grid;place-items:center}
  .sigeda-body.sigeda-nf .nf-menu-compact{display:none}
  .nf-topbar .menu-toggle{display:grid}
  .sigeda-body.sigeda-nf .sidebar-backdrop.show{display:block;position:fixed;inset:0;z-index:1039;border:0;background:#0206178c}
  .sigeda-body.sigeda-nf.menu-open{overflow:hidden}
}
@media(max-width:575.98px){
  .sigeda-body.sigeda-nf .content{padding:16px}.nf-topbar{padding:10px 12px;gap:6px}
  .nf-topbar .topbar-search{flex:1;padding:0 9px}.nf-topbar .topbar-search input{font-size:16px}
  .nf-header-actions{gap:0}.nf-topbar .topbar-logout{display:none}.nf-profile-link{display:none}
  .nf-topbar .nf-icon-button,.nf-topbar .notification-trigger{width:40px;min-width:40px}
  .nf-ui-button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.sigeda-nf *,.nf-login *{scroll-behavior:auto;transition:none}}
@media print{.sigeda-body.sigeda-nf .sidebar,.sigeda-body.sigeda-nf .nf-topbar,.sigeda-body.sigeda-nf .app-pie,.sigeda-body.sigeda-nf .sidebar-backdrop{display:none}.sigeda-body.sigeda-nf .main{margin:0;width:100%}.sigeda-body.sigeda-nf .content{padding:0}}
