.nl-clinical-store-gate { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: #f4f7f6; padding: 20px; }
.nl-clinical-store-gate[hidden] { display: none; }
.nl-clinical-store-gate-card { width: min(480px, 100%); padding: 24px; border: 1px solid #cbd7df; border-radius: 12px; background: #fff; box-shadow: 0 12px 36px #24384a22; }
.nl-clinical-store-gate-card p { line-height: 1.5; }
.nl-clinical-store-gate-card button { padding: 9px 14px; border: 0; border-radius: 6px; background: #365a72; color: #fff; cursor: pointer; }
.nl-clinical-store-gate-card input { box-sizing: border-box; display: block; width: 100%; margin: 9px 0; padding: 10px; border: 1px solid #b8c7d2; border-radius: 6px; }
.nl-clinical-store-gate-card input[hidden] { display: none; }
.nl-recovery-key { padding: 12px; border: 1px solid #b8c7d2; overflow-wrap: anywhere; font-family: monospace; user-select: all; }
.nl-lock-button { margin: 12px 20px; padding: 9px; color: #fff; background: transparent; border: 1px solid #9eb2c3; border-radius: 6px; cursor: pointer; }
.modal-overlay {
display: none;
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.85);
z-index: 9999;
justify-content: center;
align-items: center;
backdrop-filter: blur(5px);
}
.modal-contenido {
background-color: #ffffff;
padding: 26px;
border-radius: 12px;
max-width: 700px;
width: min(700px, calc(100% - 24px));
max-height: calc(100dvh - 32px);
overflow-y: auto;
box-shadow: 0 10px 25px rgba(0,0,0,0.5);
text-align: left;
box-sizing: border-box;
}
.modal-contenido-legal h2 { margin: 0 0 6px; color: #193647; font-size: 21px; }
.legal-subtitle { margin: 0 0 14px; color: #526b7e; font-size: 13px; }
.texto-legal {
background: #f8f9fa;
border-radius: 8px;
border: 1px solid #d8e2e9;
max-height: 46dvh;
overflow-y: auto;
padding: 16px 18px;
margin-bottom: 14px;
font-size: 13.5px;
line-height: 1.55;
color: #24384a;
}
.texto-legal-html h3 { margin: 12px 0 6px; font-size: 14.5px; color: #0d4c5e; }
.texto-legal-html h3:first-child { margin-top: 0; }
.texto-legal-html p { margin: 0 0 8px; }
.texto-legal-html ul { margin: 0 0 10px; padding-left: 20px; }
.texto-legal-html li { margin-bottom: 5px; }
.legal-pdf-link { margin-top: 12px; }
.legal-pdf-link a { color: #126479; font-weight: 600; }
.legal-confirm-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13.5px; line-height: 1.4; color: #193647; cursor: pointer; }
.legal-confirm-row input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.legal-error { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; background: #fdecec; color: #8c1d18; font-size: 13px; }
.legal-error[hidden] { display: none; }
.btn-aceptar-terminos {
background-color: #126479;
color: white;
border: none;
padding: 12px 24px;
font-size: 15px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
width: 100%;
transition: background 0.2s;
}
.btn-aceptar-terminos:hover {
background-color: #0d4c5e;
}
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; display: flex; height: 100vh; height: 100dvh; background-color: #f4f7f6; color: #333; }
.Logo-app { width: 35px; height: 35px; vertical-align: middle; margin-right: 8px; border-radius: 5px; }
.sidebar { width: 250px; background-color: #2c3e50; color: white; display: flex; flex-direction: column; padding-top: 20px; flex-shrink: 0; overflow-y: auto; }
.sidebar h2 { color: white; text-align: center; margin-bottom: 30px; font-size: 20px; border-bottom: 1px solid #34495e; padding-bottom: 15px; }
.sidebar > .sidebar-section-label { margin: 0; padding: 14px 20px 6px 28px !important; color: #8fb7d8; font-size: 10px; font-weight: 800; letter-spacing: .09em; line-height: 1.25; text-transform: uppercase; }
.menu-btn { background: none; border: none; color: #ecf0f1; padding: 15px 20px; text-align: left; font-size: 16px; cursor: pointer; transition: 0.3s; }
.menu-btn:hover { background-color: #34495e; padding-left: 25px; border-left: 4px solid #3498db; }
.menu-btn.active { background-color: #3498db; font-weight: bold; }
.content { flex-grow: 1; padding: 30px; overflow-y: auto; }
.card { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
h1, h2, h3 { color: #2c3e50; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 15px; }
.input-group { display: flex; flex-direction: column; }
.input-group label { margin-bottom: 5px; font-weight: bold; color: #7f8c8d; font-size: 13px; }
.input-group input, .input-group select { padding: 10px; border: 1px solid #bdc3c7; border-radius: 5px; font-size: 15px; }
.module-reference-note { clear: both; max-width: 1050px; margin: 8px auto 14px; color: #7f8c8d; font-size: 11px; line-height: 1.45; text-align: center; }
.module-reference-note a { color: #5b7283; text-decoration: underline; text-underline-offset: 2px; }
.module-reference-note a:hover, .module-reference-note a:focus-visible { color: #245c83; }
.btn-calcular { background-color: #27ae60; color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; width: 100%; transition: 0.3s; font-weight: bold; margin-top: 15px; }
.btn-calcular:hover { background-color: #2ecc71; }
.paciente-card { background: #fff; }
.paciente-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.paciente-card-header h1 { margin-bottom: 5px; }
.paciente-card-header p { margin: 0 0 14px; color: #526573; font-size: 13px; line-height: 1.4; }
.btn-toggle-datos { flex: 0 0 auto; border: 1px solid #2980b9; background: #fff; color: #2471a3; border-radius: 7px; padding: 8px 13px; font-weight: 700; cursor: pointer; }
.btn-toggle-datos:hover { background: #f4fbff; }
.datos-generales-resumen { display: none; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.datos-generales-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #cfe3ec; color: #34495e; font-size: 12px; line-height: 1.25; }
.paciente-card.datos-contraidos { padding-top: 17px; padding-bottom: 17px; }
.paciente-card.datos-contraidos .paciente-card-header p { display: none; }
.paciente-card.datos-contraidos .paciente-card-header h1 { margin-bottom: 9px; font-size: 18px; }
.paciente-card.datos-contraidos #datos-generales-contenido { display: none; }
.paciente-card.datos-contraidos .datos-generales-resumen { display: flex; }
.contexto-medicamentos { margin-top: 24px; }
.contexto-vitales-accion { max-width: 280px; margin: 8px 0 14px; }
.contexto-medicamentos > .section-divider { margin-bottom: 12px; }
.datos-generales-acciones { display: none; margin-top: 12px; }
.paciente-card.datos-contraidos .datos-generales-acciones { display: flex; justify-content: flex-end; }
.datos-generales-guardar { width: auto; margin: 0; padding: 8px 12px; font-size: 12px; background: #34495e; }
.paciente-card:not(.datos-contraidos) #btn-toggle-datos-generales { display: none; }
.medicamentos-captura { display: grid; gap: 12px; margin: 14px 0; }
.medicamento-fila { padding: 13px; border: 1px solid #d6e2e8; border-radius: 9px; background: #f8fbfc; }
.medicamento-fila-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.medicamento-fila-header strong { color:#34495e; font-size:13px; }
.medicamento-eliminar { border: 0; background: transparent; color:#b03a2e; font-weight:700; cursor:pointer; }
.medicamento-fila .form-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.medicamento-fila .input-group { margin-bottom: 0; }
.workflow-route-card { margin: 18px 0; padding: 14px 16px; border: 1px solid #cfe0ea; border-left: 5px solid #2980b9; border-radius: 8px; background: #f5fbff; color: #34495e; font-size: 13px; line-height: 1.5; }
.workflow-route-card h3 { margin: 0 0 6px; font-size: 16px; }
.workflow-route-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.workflow-route-actions .btn-calcular { width: auto; margin-top: 0; padding: 9px 14px; font-size: 13px; }
.workflow-route-actions .workflow-secondary-action { background: #5b7083; }
.workflow-route-actions .workflow-secondary-action:hover { background: #6d8295; }
@media (max-width: 760px) {
.paciente-card-header { align-items: stretch; flex-direction: column; gap: 8px; }
.btn-toggle-datos { align-self: flex-start; }
}
.imc-badge { display: inline-block; padding: 5px 10px; border-radius: 5px; margin-top: 10px; font-weight: bold; font-size: 14px; }
.resultados-container { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; display: none; }
.resultado-item { padding: 12px; margin-bottom: 10px; border-radius: 8px; border-left: 5px solid; }
.res-normal { background-color: #d5f5e3; border-left-color: #2ecc71; }
.res-alerta { background-color: #fcf3cf; border-left-color: #f1c40f; }
.res-naranja { background-color: #fdebd0; border-left-color: #e67e22; }
.res-peligro { background-color: #f2d7d5; border-left-color: #c0392b; }
.np-safety-disclosure { margin: 12px 0 14px; border: 1px solid #d8e1e7; border-radius: 8px; background: #f8fafb; color: #34495e; }
.np-safety-disclosure > summary { cursor: pointer; padding: 11px 13px; color: #365a72; font-size: 13px; font-weight: 800; }
.np-safety-disclosure > div { padding: 0 13px 10px; font-size: 12px; line-height: 1.5; }
.np-safety-disclosure p { margin: 6px 0; }
.np-field-help { margin-top: 5px; color: #667085; font-size: 11px; line-height: 1.4; }
.field-help { margin: -2px 0 12px; color: #667085; font-size: 12px; line-height: 1.4; }
.np-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.np-form-grid > .input-group { min-width: 0; }
.np-form-grid input, .np-form-grid select, .np-selected-bag select { box-sizing: border-box; min-width: 0; width: 100%; }
.np-selected-bag { margin: 16px 0 8px; padding: 13px; border: 1px solid #dce4e8; border-radius: 9px; background: #f8fafb; }
.np-selected-bag > label { display: block; margin-bottom: 7px; color: #40576a; font-size: 13px; font-weight: 700; }
.np-selected-bag > select { padding: 10px; border: 1px solid #bdc3c7; border-radius: 5px; font-size: 15px; }
.np-mode-note { margin: -2px 0 9px; }
.np-mode-status { margin: 10px 0 0; padding: 9px 11px; border: 1px solid #d9e2e7; border-left: 4px solid #68879a; border-radius: 7px; background: #f7fbfe; color: #475467; font-size: 12px; line-height: 1.45; }
.np-method-panel { margin: 0 0 10px; padding: 12px; border: 1px solid #dce4e8; border-radius: 8px; background: #f8fafb; }
#modulo-np input[readonly], #modulo-np select:disabled { background: #eef2f4; color: #526573; border-color: #d6dfe4; cursor: not-allowed; }
#modulo-np input[readonly]:focus, #modulo-np select:disabled:focus { box-shadow: none; outline: none; }
.np-confirmation { margin-top: 10px; padding: 10px 12px; background: #fffaf0; border: 1px solid #f0dfb2; border-left: 4px solid #d99b18; border-radius: 6px; font-size: 12px; line-height: 1.45; }
.btn-calcular.np-action-primary { margin-top: 10px; background: #6c5ce7; }
.btn-calcular.np-action-primary:hover { background: #5b4bc4; }
.btn-calcular.np-action-secondary { margin-top: 10px; background: #fff; border: 1px solid #536b7c; color: #365a72; }
.btn-calcular.np-action-secondary:hover { background: #f3f7f9; }
.np-panel { margin-bottom: 12px; padding: 15px; border: 1px solid #dce4e8; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(44, 62, 80, .04); }
.np-reference-panel { background: #f8fafb; }
.np-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.np-panel-header h3 { margin: 0; color: #2c3e50; font-size: 18px; }
.np-panel-header p { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.4; }
.np-key-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.np-key-value { min-width: 0; padding: 9px 10px; border: 1px solid #e3e9ed; border-radius: 7px; background: #f8fafb; }
.np-key-value-wide { grid-column: 1 / -1; }
.np-key-value > span { display: block; margin-bottom: 3px; color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.np-key-value > strong { display: block; color: #263b4a; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.np-summary-scenario { margin: 0 0 10px; color: #365a72; font-size: 12px; font-weight: 700; }
.np-key-values-critical .np-key-value { background: #fff; border-color: #ccd9e1; }
.np-key-values-critical .np-key-value > strong { font-size: 15px; }
.np-summary-details { margin-top: 13px; padding-top: 10px; border-top: 1px solid #e3e9ed; }
.np-summary-details > summary { margin-bottom: 0; color: #365a72; font-size: 12px; font-weight: 700; cursor: pointer; }
.np-summary-details[open] > summary { margin-bottom: 10px; }
.np-panel-footnote { margin: 10px 0 0; color: #667085; font-size: 11px; line-height: 1.45; }
.np-cross-module { margin-top: 12px; }
.np-cross-panel { padding: 13px 14px; border: 1px solid #dce4e8; border-left: 3px solid #5c8198; border-radius: 8px; background: #fff; }
.np-cross-panel h3 { margin: 0 0 4px; color: #2c3e50; font-size: 15px; }
.np-cross-scenario { margin: 0 0 9px; color: #405a6b; font-size: 12px; }
.np-cross-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 7px; }
.np-cross-metrics .np-key-value { background: #f8fafb; }
.np-cross-note { margin: 9px 0 0; color: #667085; font-size: 11px; line-height: 1.4; }
.support-decision-panel { padding: 15px; border: 1px solid #dce4e8; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(44, 62, 80, .04); }
.support-decision-panel-review { border-left: 3px solid #d99b18; }
.support-decision-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.support-decision-eyebrow { display: block; margin-bottom: 4px; color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.support-decision-header h3 { margin: 0; color: #2c3e50; font-size: 18px; line-height: 1.3; }
.support-decision-summary { margin: 9px 0 0; color: #475467; font-size: 12px; line-height: 1.5; }
.support-decision-attention { display: grid; gap: 7px; margin-top: 12px; }
.support-decision-notice { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid #f0dfb2; border-left: 3px solid #d99b18; border-radius: 6px; background: #fffaf0; color: #534525; font-size: 12px; line-height: 1.4; }
.support-decision-notice-danger { border-color: #efc7c3; border-left-color: #c0392b; background: #fff7f6; color: #772e28; }
.support-decision-details { margin-top: 13px; padding-top: 10px; border-top: 1px solid #e3e9ed; color: #475467; font-size: 12px; line-height: 1.5; }
.support-decision-details > summary { cursor: pointer; color: #365a72; font-weight: 800; }
.support-decision-details[open] > summary { margin-bottom: 10px; }
.support-decision-context { display: flex; flex-wrap: wrap; gap: 6px; }
.support-decision-context > span { padding: 5px 7px; border: 1px solid #e3e9ed; border-radius: 5px; background: #f8fafb; }
.support-decision-steps { margin: 10px 0; padding-left: 20px; }
.support-decision-steps li { margin-bottom: 6px; }
.support-decision-steps li strong, .support-decision-steps li span { display: block; }
.support-decision-details p { margin: 7px 0 0; }
.support-decision-footnote { color: #667085; font-size: 11px; }
#soporte-siguiente-paso.workflow-route-card { margin: 11px 0 18px; padding: 12px 14px; border: 1px solid #dce4e8; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(44, 62, 80, .04); }
#soporte-siguiente-paso.workflow-route-card h3 { color: #2c3e50; font-size: 14px; }
.np-status { display: inline-flex; align-items: center; width: fit-content; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.np-status-good { color: #166534; background: #dcfce7; }
.np-status-info { color: #285f79; background: #e7f3f9; }
.np-status-warning { color: #854d0e; background: #fef3c7; }
.np-status-missing { color: #6b4e16; background: #fff7dd; }
.np-status-danger { color: #991b1b; background: #fee2e2; }
.np-table-scroll { width: 100%; overflow-x: auto; }
.np-comparison-table, .np-clinical-table, .np-semaphore-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.np-comparison-table th, .np-clinical-table th, .np-semaphore-table th { padding: 8px; border-bottom: 2px solid #dce4e8; color: #40576a; background: #f6f8fa; text-align: left; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; }
.np-comparison-table td, .np-clinical-table td, .np-semaphore-table td { padding: 9px 8px; border-bottom: 1px solid #e7ecef; color: #34495e; text-align: left; vertical-align: top; }
.np-comparison-table tbody tr:last-child td, .np-clinical-table tbody tr:last-child td, .np-semaphore-table tbody tr:last-child td { border-bottom: 0; }
.np-comparison-table td strong { display: block; color: #263b4a; }
.np-table-note { display: block; margin-top: 3px; color: #667085; font-size: 10px; line-height: 1.35; }
.np-rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #365a72; color: #fff; font-weight: 800; }
.np-select-scenario { width: auto; min-width: 108px; padding: 7px 9px; border: 1px solid #6656d9; border-radius: 5px; background: #fff; color: #5143bc; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.np-select-scenario:hover, .np-select-scenario:focus-visible { background: #f1efff; }
.np-method-details { margin-top: 10px; border-top: 1px solid #e3e9ed; padding-top: 9px; color: #526573; font-size: 11px; line-height: 1.45; }
.np-method-details summary { cursor: pointer; color: #365a72; font-weight: 800; }
.np-method-details p { margin: 6px 0 0; }
.np-operational-boundary { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid #f0dfb2; border-left: 4px solid #d99b18; border-radius: 7px; background: #fffaf0; color: #4f4532; font-size: 12px; line-height: 1.45; }
.np-inverse-calculator { margin: 18px 0 4px; padding: 14px; border: 1px solid #dce4e8; border-radius: 9px; background: #f8fafb; }
.np-inverse-calculator > summary { cursor: pointer; color: #365a72; font-size: 14px; font-weight: 700; }
.np-inverse-calculator[open] > summary { margin-bottom: 10px; }
.np-inverse-calculator h4 { margin: 0 0 5px; color: #2c3e50; font-size: 15px; }
.np-inverse-calculator > p { margin: 0 0 10px; color: #667085; font-size: 12px; line-height: 1.45; }
.np-inverse-result { background: #fff; }
.np-theoretical-boundary { margin: 11px 0; padding: 9px 11px; border: 1px solid #d9e2e7; border-left: 4px solid #68879a; border-radius: 7px; background: #f7fbfe; color: #475467; font-size: 11px; line-height: 1.45; }
.np-inverse-table th:first-child { min-width: 160px; }
.np-inverse-table th:last-child { min-width: 190px; }
.np-micro-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.np-micro-status > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid #e3e9ed; border-radius: 7px; background: #f8fafb; font-size: 11px; }
.np-micro-status > div > span:first-child { color: #667085; font-weight: 700; }
.np-clinical-semaphore { border-top: 3px solid #d99b18; }
.np-semaphore-table th:first-child { width: 82px; }
.np-semaphore-table th:nth-child(2) { width: 220px; }
.np-semaphore-danger td { background: #fff8f8; }
.np-semaphore-warning td { background: #fffdf7; }
.np-compact-success { margin: 10px 0; padding: 10px 12px; border: 1px solid #bbdfc7; border-radius: 7px; background: #f4fbf6; color: #365a43; font-size: 12px; }
.np-review-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3e9ed; color: #667085; font-size: 10px; line-height: 1.45; text-align: center; }
@media (max-width: 900px) { .np-key-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
.np-panel-header { flex-direction: column; }
.np-key-values, .np-micro-status { grid-template-columns: 1fr; }
.np-key-value-wide { grid-column: auto; }
}
.modulo-oculto { display: none; }
.section-divider { border-bottom: 2px dashed #ecf0f1; padding-bottom: 10px; margin-bottom: 15px; color: #34495e; font-size: 16px; margin-top: 20px; }
.synthesis-context-panel { padding: 14px 15px 2px; margin: 16px 0 12px; background: #f8fbfc; border: 1px solid #dfe7eb; border-radius: 9px; }
.synthesis-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.synthesis-toolbar .btn-calcular { width: auto; margin-top: 0; }
.synthesis-primary-action { background-color: #6c5ce7; }
.synthesis-primary-action:hover { background-color: #5b4bc4; }
.synthesis-secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.synthesis-secondary-action { background-color: #2f8f83; font-size: 14px; padding: 10px 14px; }
.synthesis-secondary-action:hover { background-color: #27796f; }
.synthesis-print-action { background-color: #2f6f8f; }
.synthesis-print-action:hover { background-color: #285f79; }
.synthesis-copy-feedback { font-size: 12px; color: #16794b; font-weight: 700; display: none; }
.synthesis-local-note { font-size: 11px; color: #667085; margin-top: 8px; line-height: 1.45; }
.nl-synthesis-section { margin: 14px 0; border: 1px solid #dfe7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.nl-synthesis-section > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; color: #24455c; font-weight: 800; font-size: 16px; background: #f8fbfc; }
.nl-synthesis-section > summary::-webkit-details-marker { display: none; }
.nl-synthesis-section > summary::after { content: '⌄'; color: #667085; font-size: 20px; line-height: 1; transition: transform .18s ease; }
.nl-synthesis-section[open] > summary::after { transform: rotate(180deg); }
.nl-synthesis-section-body { padding: 14px 15px 4px; }
.nl-synthesis-section-count { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: #e8f1f5; color: #476275; font-size: 11px; font-weight: 700; }
.nl-synthesis-status { margin-bottom: 11px; }
.nl-synthesis-attention-group { margin: 0 0 13px; padding: 0 0 12px; border-bottom: 1px solid #e5eaed; }
.nl-synthesis-attention-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.nl-synthesis-attention-group h3 { margin: 0 0 7px; color: #475467; font-size: 13px; }
.nl-synthesis-attention-critical h3 { color: #b42318; }
.nl-synthesis-extra-items { margin-top: 8px; }
.nl-synthesis-extra-items > summary { cursor: pointer; color: #476275; font-size: 12px; font-weight: 700; }
.nl-synthesis-extra-items > ul { margin-top: 8px !important; }
.nl-axis { margin-bottom: 11px; border: 1px solid #dfe7eb; border-left: 5px solid #68879a; border-radius: 9px; overflow: hidden; background: #fff; }
.nl-axis-critical { border-left-color: #c0392b; }
.nl-axis-high { border-left-color: #e67e22; }
.nl-axis-moderate { border-left-color: #f1c40f; }
.nl-axis > summary { list-style: none; cursor: pointer; display: flex; gap: 11px; align-items: center; padding: 12px; }
.nl-axis > summary::-webkit-details-marker { display: none; }
.nl-axis > summary::after { content: 'Ver'; margin-left: auto; color: #476275; font-size: 12px; font-weight: 700; }
.nl-axis[open] > summary::after { content: 'Ocultar'; }
.nl-axis-number { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #34495e; color: #fff; font-weight: 800; }
.nl-axis-heading { min-width: 0; flex: 1; }
.nl-axis-heading h3 { margin: 0; font-size: 16px; color: #2c3e50; }
.nl-axis-level { display: block; margin-top: 3px; color: #667085; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.nl-axis-body { padding: 0 14px 14px 53px; font-size: 14px; line-height: 1.55; }
.priority-context-note { margin: 16px 0 12px; padding: 12px 14px; border-radius: 9px; border-left: 4px solid #2f8f83; background: #f0faf7; color: #34495e; font-size: 13px; line-height: 1.55; }
.priority-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.priority-toolbar .btn-calcular { width: auto; margin-top: 0; }
.equivalentes-table th, .equivalentes-table td { border: 1px solid #d9e2e7; padding: 7px; text-align: center; }
.equivalentes-table th { background: #eef6f4; color: #24455c; font-weight: 800; }
.equivalentes-table td:first-child { text-align: left; font-weight: 700; min-width: 170px; }
.get-guidance-panel, .eq-panel { border: 1px solid #dfe7eb; border-radius: 10px; background: #fff; padding: 15px; color: #34495e; }
.get-guidance-panel h3, .eq-panel h3 { margin: 0 0 10px; font-size: 17px; }
.get-guidance-panel ul { margin: 0 0 8px 19px; padding: 0; line-height: 1.5; }
.get-guidance-panel li { margin-bottom: 5px; }
.get-guidance-details { border-top: 1px solid #e5eaee; margin-top: 10px; padding-top: 10px; }
.get-guidance-details summary { cursor: pointer; color: #31566e; font-weight: 700; }
.get-guidance-details > div { margin-top: 11px; }
#resultados-equivalentes { display: grid; gap: 12px; }
.eq-panel p { margin: 5px 0 11px; line-height: 1.45; }
.eq-panel label { display: block; margin: 8px 0 4px; }
.eq-pattern-detail { padding: 9px 11px; border-left: 3px solid #68879a; background: #f5f9fb; }
.eq-muted { color: #667085; font-size: 12px; }
.eq-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eq-toolbar button, .equivalentes-table th button { width: auto; padding: 6px 9px; border: 1px solid #9bb3c2; border-radius: 6px; background: #fff; color: #24455c; cursor: pointer; }
.eq-table-scroll { overflow-x: auto; }
.equivalentes-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.equivalentes-table th, .equivalentes-table td { min-width: 100px; }
.equivalentes-table input { width: 70px; box-sizing: border-box; padding: 5px; }
.equivalentes-table th input { width: 104px; font-weight: 700; }
.equivalentes-table th button { display: block; margin: 5px auto 0; font-size: 11px; }
.eq-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.eg-ne-panel { color: #34495e; }
.egreso-route-panel { margin-top: 16px; padding: 16px; border: 1px solid #dfe7eb; border-radius: 10px; background: #fff; }
.egreso-route-panel h2 { margin-top: 0; color: #34495e; font-size: 20px; }
.egreso-route-summary { margin: 10px 0; padding: 10px 12px; border: 1px solid #dfe7eb; border-radius: 8px; background: #f7f9fb; color: #34495e; font-size: 13px; line-height: 1.5; }
.eg-ne-panel h2 { margin: 0 0 8px; }
.eg-ne-panel h3 { margin: 20px 0 10px; padding-bottom: 7px; border-bottom: 1px solid #dfe7eb; font-size: 16px; }
.eg-ne-muted { margin: 7px 0 13px; color: #667085; font-size: 12px; line-height: 1.5; }
.eg-ne-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
#modulo-equivalentes, .egreso-route-panel, .egreso-route-panel .input-group { min-width: 0; }
#modulo-equivalentes input, #modulo-equivalentes select { box-sizing: border-box; max-width: 100%; }
#eg-ne-receta-filas select { width: 100%; min-width: 200px; padding: 8px; }
#eg-ne-receta-filas input { width: 100px; padding: 8px; }
#modulo-equivalentes .btn-calcular { background-color: #6c5ce7; }
#modulo-equivalentes .btn-calcular:hover { background-color: #5b4bd6; }
.eg-ne-grid .input-group { min-width: 0; }
.eg-ne-confirm { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0; padding: 9px 11px; border: 1px solid #e4e9ed; border-radius: 7px; font-size: 12px; line-height: 1.45; }
.eg-ne-confirm input { flex: 0 0 auto; margin-top: 2px; }
.eg-ne-secondary { margin: 4px 0 7px; width: auto; padding: 7px 11px; border: 1px solid #839eb0; border-radius: 6px; background: #fff; color: #31566e; cursor: pointer; }
.eg-ne-result, .eg-ne-error { padding: 15px; border: 1px solid #dfe7eb; border-radius: 9px; background: #fff; }
.eg-ne-result h3 { margin-top: 0; }
.eg-ne-error { border-color: #efb7b1; color: #8e2f24; }
.eg-ne-error ul { margin: 8px 0 0 20px; }
.eg-ne-table-wrap { overflow-x: auto; }
.eg-ne-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eg-ne-table th, .eg-ne-table td { border-bottom: 1px solid #e5eaee; padding: 8px; text-align: left; }
.eg-ne-table thead th { background: #f4f8fa; }
.eg-ne-table .eg-ne-total { font-weight: 700; }
.eg-ne-warning { border-left: 3px solid #bf8619; background: #fff8e8; padding: 9px 11px; font-size: 12px; line-height: 1.45; }
@media (max-width: 720px) { .eq-toolbar { flex-direction: column; } }
.priority-generate-action { background-color: #2f8f83; }
.priority-generate-action:hover { background-color: #27796f; }
.priority-local-note { margin-top: 8px; font-size: 11px; color: #667085; line-height: 1.45; }
.decision-context-help { margin: 0 0 12px; padding: 9px 11px; border-radius: 7px; border-left: 4px solid #68879a; background: #f7fbfe; color: #475467; font-size: 12px; line-height: 1.45; }
@media (max-width: 720px) { .synthesis-toolbar, .synthesis-secondary-actions { align-items: stretch; width: 100%; } .synthesis-toolbar .btn-calcular, .synthesis-secondary-action { flex: 1 1 auto; } .nl-axis-body { padding-left: 14px; } }
#pantalla-cuenta {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: #2c3e50; color: white; z-index: 10001;
display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nl-account-secondary { margin-top: 10px; border: 0; background: transparent; color: #315b74; cursor: pointer; font-weight: 600; }
.caja-licencia {
background: white; padding: 40px; border-radius: 15px; color: #333;
text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 400px;
}
.input-licencia {
width: 100%; padding: 15px; margin: 20px 0; border: 2px solid #bdc3c7;
border-radius: 8px; font-size: 18px; text-align: center; text-transform: uppercase;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
transition: all 0.3s ease;
}
.pes-panel{margin-top:22px;padding:20px;border:1px solid #d8e2e9;border-radius:10px;background:#fff;color:#304458}
.pes-panel h3{margin:0 0 7px}.pes-muted{color:#607286;font-size:13px;line-height:1.45}
.pes-secondary,.pes-primary{border-radius:6px;padding:10px 15px;font-weight:600;cursor:pointer}
.pes-secondary{border:1px solid #7896a9;background:#fff;color:#315b74}.pes-primary{border:0;background:#6c5ce7;color:#fff;margin-top:12px}
.pes-list{padding-left:20px;margin:14px 0}.pes-list li{padding:8px 0;border-bottom:1px solid #e7edf1}.pes-list span{display:block;color:#526b7e;font-size:12px;margin-top:2px}
.pes-confirm-row{display:flex;gap:8px;align-items:flex-start;margin-top:14px;font-size:13px;line-height:1.4}
.pes-confirm-row input{margin-top:2px}.pes-confirmed{margin-top:12px;padding:12px;border-left:4px solid #2f9e7e;background:#ecf8f2;line-height:1.5;white-space:pre-wrap}
#pes-status{margin-top:10px;color:#79511a;font-size:12px}
.pes-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pes-confirmed-header{margin-bottom:8px;color:#1b4332}
.pes-confirmed-item{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:7px 0;border-bottom:1px solid #d4ece1}
.pes-confirmed-item:last-child{border-bottom:0;padding-bottom:0}
.pes-remove-btn{flex:0 0 auto;padding:4px 10px;border:1px solid #b85c5c;border-radius:5px;background:#fff;color:#8c1d18;font-size:12px;font-weight:600;cursor:pointer}
.pes-remove-btn:hover{background:#fdecec}
.pes-biochemical-evidence{margin-top:12px;padding:12px;border-left:4px solid #b7791f;background:#fffaf0;font-size:13px}
.pes-biochemical-evidence b{display:block;margin-bottom:7px}.pes-biochemical-evidence label{display:block;margin:7px 0;line-height:1.35}
:root {
--nl-teal: #126479;
--nl-teal-dark: #0d4c5e;
--nl-ink: #193647;
--nl-muted: #526978;
--nl-border: #d7e3e7;
--nl-canvas: #f2f6f7;
--nl-info-soft: #f1f8f9;
--nl-good: #157653;
--nl-good-soft: #edf8f1;
--nl-warning: #9a6713;
--nl-warning-soft: #fff7e6;
--nl-danger: #ad3c37;
--nl-danger-soft: #fff1ef;
--nl-radius: 12px;
}
* { box-sizing: border-box; }
body { background: var(--nl-canvas); color: var(--nl-ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, summary { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
outline: 3px solid #5bb1c6;
outline-offset: 2px;
}
h1, h2, h3 { color: var(--nl-ink); }
.sidebar { width: 258px; background: var(--nl-teal-dark); color: #eff9fa; padding-top: 0; }
.sidebar h2 { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 22px 17px; background: var(--nl-teal-dark); border-bottom: 1px solid #ffffff26; font-size: 19px; text-align: left; }
.sidebar h2 span { font-size: 13px; font-weight: 500; opacity: .78; }
.Logo-app { width: 36px; height: 36px; margin: 0; object-fit: cover; }
.sidebar-group { margin: 3px 0 8px; }
.sidebar-group > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding: 13px 19px 9px; color: #a8d2da; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group > summary::after { content: '⌄'; font-size: 17px; line-height: 1; transform: rotate(-90deg); transition: transform .15s ease; }
.sidebar-group[open] > summary::after { transform: rotate(0); }
.sidebar-group-items { display: grid; gap: 2px; }
.sidebar .menu-btn { display: block; width: calc(100% - 18px); margin: 0 9px; padding: 10px 14px; border-left: 3px solid transparent; border-radius: 7px; color: #e9f4f6; font-size: 14px; line-height: 1.35; text-align: left; transition: background-color .15s ease, color .15s ease; }
.sidebar .menu-btn:hover { padding-left: 14px; border-left-color: #69c5d3; background: #ffffff17; }
.sidebar .menu-btn.active, .sidebar .menu-btn[aria-current="page"] { border-left-color: #7cd8d3; background: #ffffff25; color: #fff; font-weight: 750; }
.sidebar .nl-lock-button { margin: 9px 18px; border-color: #ffffff5c; color: #fff; }
.content { min-width: 0; padding: 24px clamp(16px, 2.3vw, 36px) 36px; }
.card { min-width: 0; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--nl-border); border-radius: var(--nl-radius); box-shadow: 0 4px 18px #153a4b0a; }
.card h1 { margin-bottom: 8px; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.18; letter-spacing: -.025em; }
.card > p, .module-heading > p { color: var(--nl-muted); line-height: 1.5; }
.section-divider { border-bottom: 1px solid var(--nl-border); color: var(--nl-ink); }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 15px; }
.input-group { min-width: 0; }
.input-group label { color: #415866; font-size: 13px; line-height: 1.32; }
.input-group input, .input-group select { min-width: 0; max-width: 100%; border-color: #bacbd2; border-radius: 7px; color: var(--nl-ink); background-color: #fff; }
.input-group small, .field-help { color: var(--nl-muted); line-height: 1.45; }
.btn-calcular { background: var(--nl-teal); border-radius: 7px; }
.btn-calcular:hover { background: var(--nl-teal-dark); }
.btn-toggle-datos { border-color: #87aeba; color: var(--nl-teal-dark); }
.paciente-card.datos-contraidos { position: sticky; top: 0; z-index: 5; margin-bottom: 18px; padding: 12px 17px; box-shadow: 0 7px 24px #153a4b14; }
.paciente-card.datos-contraidos .paciente-card-header { align-items: center; }
.paciente-card.datos-contraidos .paciente-card-header h1 { margin: 0; font-size: 15px; }
.paciente-card.datos-contraidos .datos-generales-resumen { display: flex; flex-direction: column; gap: 7px; overflow: visible; padding: 6px 0 2px; }
.datos-generales-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.datos-generales-fila-vitales { padding-top: 7px; border-top: 1px solid var(--nl-border); }
.datos-generales-fila-label { margin-right: 4px; color: var(--nl-muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.datos-generales-chip { flex: 0 1 auto; max-width: 100%; min-height: 26px; overflow-wrap: anywhere; border-color: #d3e3e9; color: var(--nl-ink); background: var(--nl-info-soft); }
.paciente-card.datos-contraidos .datos-generales-acciones { margin-top: 4px; }
.datos-generales-guardar { background: var(--nl-teal-dark); }
.resultado-item { border-radius: 8px; line-height: 1.5; }
.res-info { border-left-color: var(--nl-teal); background: var(--nl-info-soft); }
.res-normal { border-left-color: #2aa16e; background: var(--nl-good-soft); }
.res-alerta { border-left-color: #d49a23; background: var(--nl-warning-soft); }
.res-naranja { border-left-color: #c8792c; background: #fff2e8; }
.res-peligro { border-left-color: var(--nl-danger); background: var(--nl-danger-soft); }
#resultados-prioridades > .res-normal { border-left-color: var(--nl-teal); background: var(--nl-info-soft); }
.workflow-route-card { border-color: var(--nl-border); border-left-color: var(--nl-teal); background: var(--nl-info-soft); }
.clinical-module { background: #fff; }
.module-heading { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--nl-border); }
.module-heading p { margin: 0; }
.synthesis-context-panel { border-color: var(--nl-border); background: var(--nl-info-soft); color: var(--nl-muted); }
.synthesis-primary-action, .synthesis-secondary-action, .synthesis-print-action { background: var(--nl-teal); }
.synthesis-primary-action:hover, .synthesis-secondary-action:hover, .synthesis-print-action:hover { background: var(--nl-teal-dark); }
#resultados-sintesis { padding-top: 0; border-top: 0; }
.synthesis-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(285px, .85fr); gap: 18px; align-items: start; }
.synthesis-main, .synthesis-rail { min-width: 0; }
.synthesis-main .nl-synthesis-section:first-child { margin-top: 0; }
.nl-synthesis-section { border-color: var(--nl-border); }
.nl-synthesis-section > summary { background: #f7fafb; color: var(--nl-ink); }
.nl-synthesis-section-body { overflow-wrap: anywhere; }
.nl-axis { border-color: var(--nl-border); }
.nl-axis-moderate { border-left-color: #c58a20; }
.synthesis-rail { padding: 17px; border: 1px solid var(--nl-border); border-radius: 10px; background: #f8fbfb; }
.synthesis-rail h2 { margin: 0 0 13px; font-size: 17px; }
.synthesis-rail-metrics { display: grid; gap: 8px; margin-bottom: 13px; }
.synthesis-rail-metrics > div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--nl-border); border-radius: 8px; background: #fff; }
.synthesis-rail-metrics strong { min-width: 28px; color: var(--nl-teal-dark); font-size: 19px; text-align: center; }
.synthesis-rail-metrics span, .synthesis-rail-note, .synthesis-rail-empty { color: var(--nl-muted); font-size: 12px; line-height: 1.45; }
.synthesis-rail .nl-synthesis-section { margin: 10px 0; }
.synthesis-rail .nl-synthesis-section > summary { font-size: 14px; }
.synthesis-rail .nl-synthesis-section-body { padding: 11px; }
.synthesis-rail-note { margin: 13px 0 0; }
.support-scope-note { margin-bottom: 16px; font-size: 12px; }
.support-workspace { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr); gap: 18px; align-items: start; }
.support-capture, .support-outcome { min-width: 0; padding: 18px; border: 1px solid var(--nl-border); border-radius: 10px; background: #fff; }
.support-capture .section-divider:first-child { margin-top: 0; }
.support-evaluate-action { margin-top: 16px; }
.support-outcome { background: #f8fbfb; }
.support-outcome h2 { margin: 0 0 8px; font-size: 18px; }
.support-outcome-intro { margin: 0; color: var(--nl-muted); font-size: 13px; line-height: 1.5; }
.support-outcome-intro[hidden] { display: none; }
#resultados-soporte { margin: 0; padding: 0; border: 0; }
.support-decision-panel { border-color: var(--nl-border); box-shadow: none; }
.support-decision-summary { color: var(--nl-ink); font-size: 13px; }
.support-confirmation { margin-top: 14px; padding: 14px; border: 1px solid var(--nl-border); border-radius: 9px; background: #fff; }
.support-confirmation .form-grid { grid-template-columns: 1fr; }
.support-outcome .workflow-route-card { margin: 14px 0 0; }
.support-technical-panel { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--nl-border); scroll-margin-top: 130px; }
@media (max-width: 1190px) {
.synthesis-workspace, .support-workspace { grid-template-columns: minmax(0, 1fr); }
.synthesis-rail { order: -1; }
.synthesis-rail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
.sidebar { width: 215px; }
.content { padding: 16px; }
.synthesis-rail-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
body { flex-direction: column; min-height: 100vh; }
.sidebar { width: 100%; max-height: 210px; flex: 0 0 auto; overflow-y: auto; }
.sidebar h2 { padding: 10px 15px; font-size: 16px; }
.sidebar-group > summary { padding: 8px 16px; }
.content { flex: 1; min-height: 0; padding: 12px; }
.card { padding: 16px; }
.paciente-card.datos-contraidos { padding: 10px 12px; }
.paciente-card.datos-contraidos .paciente-card-header { gap: 5px; }
.paciente-card.datos-contraidos .datos-generales-acciones { justify-content: flex-start; }
.support-capture, .support-outcome, .synthesis-rail { padding: 13px; }
.synthesis-toolbar .btn-calcular { width: 100%; }
}
.sidebar .sidebar-brand { margin: 0 0 12px; padding: 0; }
.sidebar-brand-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 18px 15px; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left; }
.sidebar-brand-toggle:hover { background: #ffffff13; }
.sidebar-brand-toggle:focus-visible { outline: 2px solid #b9ece9; outline-offset: -4px; }
.sidebar-brand-toggle .Logo-app { flex: 0 0 36px; }
.sidebar-brand-name { min-width: 0; white-space: nowrap; font-size: 19px; font-weight: 750; }
.sidebar-brand-name small { margin-left: 4px; font-size: 13px; font-weight: 500; opacity: .78; }
.sidebar-brand-chevron { margin-left: auto; font-size: 27px; font-weight: 400; line-height: 1; opacity: .75; }
.sidebar.is-collapsed { width: 72px; overflow-y: hidden; }
.sidebar.is-collapsed > :not(.sidebar-brand) { display: none !important; }
.sidebar.is-collapsed .sidebar-brand { margin: 0; }
.sidebar.is-collapsed .sidebar-brand-toggle { justify-content: center; padding: 18px 0; }
.sidebar.is-collapsed .Logo-app { margin-right: 0; }
.sidebar.is-collapsed .sidebar-brand-name, .sidebar.is-collapsed .sidebar-brand-chevron { display: none; }
#pantalla-cuenta { box-sizing: border-box; inset: 0; width: auto; height: 100vh; height: 100dvh; min-height: 0; padding: 22px; overflow-y: auto; background: #eaf1f3; color: var(--nl-ink); }
#pantalla-cuenta [hidden] { display: none !important; }
#pantalla-cuenta .caja-licencia { box-sizing: border-box; width: min(440px, 100%); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 32px; border: 1px solid var(--nl-border); border-top: 5px solid var(--nl-teal); border-radius: 14px; background: #fff; color: var(--nl-ink); text-align: left; box-shadow: 0 18px 48px #153a4b22; }
.nl-account-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: var(--nl-teal-dark); font-size: 20px; font-weight: 800; }
.nl-account-brand img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.nl-account-brand small { display: block; margin-top: 2px; color: var(--nl-muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
#pantalla-cuenta #nl-account-title { margin: 0 0 9px; font-size: 27px; line-height: 1.2; }
#nl-account-message { margin: 0 0 22px; color: var(--nl-muted); font-size: 14px; line-height: 1.5; }
#pantalla-cuenta .caja-licencia > label { display: block; margin: 15px 0 6px; color: var(--nl-ink); font-size: 13px; font-weight: 750; }
#pantalla-cuenta .input-licencia { display: block; width: 100%; margin: 0; padding: 12px 13px; border: 1px solid #aebfc7; border-radius: 7px; background: #fff; color: var(--nl-ink); font-size: 16px; text-align: left; text-transform: none; }
#pantalla-cuenta .input-licencia::placeholder { color: #718591; }
#pantalla-cuenta #nl-account-primary { width: 100%; margin: 23px 0 0; background: var(--nl-teal); font-size: 15px; }
#pantalla-cuenta #nl-account-primary:hover { background: var(--nl-teal-dark); }
.nl-account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 13px; }
#pantalla-cuenta .nl-account-secondary { margin: 0; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--nl-teal-dark); font-size: 13px; font-weight: 700; cursor: pointer; }
#pantalla-cuenta .nl-account-secondary:hover { background: var(--nl-info-soft); text-decoration: underline; }
#pantalla-cuenta #nl-account-secondary { flex: 1 1 100%; border: 1px solid #a9c6cf; text-align: center; text-decoration: none; }
#nl-account-device-id { padding: 10px; border: 1px solid var(--nl-border); border-radius: 7px; background: var(--nl-info-soft); font-size: 12px; }
#nl-account-error { margin: 16px 0 0; padding: 10px 12px; border: 1px solid #e7b4af; border-left: 4px solid var(--nl-danger); border-radius: 7px; background: var(--nl-danger-soft); color: #7f2927; font-size: 13px; line-height: 1.45; }
@media (max-width: 720px) {
.sidebar.is-collapsed { width: 100%; max-height: 72px; }
.sidebar.is-collapsed .sidebar-brand-toggle { justify-content: flex-start; padding: 12px 16px; }
.sidebar.is-collapsed .sidebar-brand-name,
.sidebar.is-collapsed .sidebar-brand-chevron { display: inline; }
}
@media (max-width: 520px) {
#pantalla-cuenta { padding: 12px; }
#pantalla-cuenta .caja-licencia { max-height: calc(100dvh - 24px); padding: 22px; }
}
.menus-panel { margin-top: 22px; padding: 20px; border: 1px solid var(--nl-border); border-radius: 10px; background: #fff; }
.menus-panel h2 { margin: 0 0 6px; color: var(--nl-ink); }
.menus-config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.menus-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.menus-filter-title { font-size: 13px; font-weight: 700; color: var(--nl-ink); margin-right: 4px; }
.menus-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--nl-border); border-radius: 999px; background: #f8fbfc; font-size: 12.5px; cursor: pointer; }
.menus-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.menus-btn-primary { margin: 0; width: auto; }
.menus-status { font-size: 13px; color: #315b74; background: #f2f8fa; padding: 9px 12px; border-radius: 7px; border-left: 4px solid var(--nl-teal); }
.menus-day-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.menus-day-tab { padding: 8px 14px; border: 1px solid var(--nl-border); border-radius: 8px; background: #f7fafb; color: var(--nl-ink); font-weight: 600; cursor: pointer; min-height: 40px; }
.menus-day-tab.is-active { background: var(--nl-teal); border-color: var(--nl-teal); color: #fff; }
.menus-day-summary { padding: 10px 12px; background: #eef7f6; border-radius: 8px; font-size: 13.5px; color: var(--nl-ink); margin-bottom: 12px; }
.menus-meals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.menus-meal-card { border: 1px solid var(--nl-border); border-radius: 10px; padding: 14px; background: #fbfdfd; display: flex; flex-direction: column; gap: 8px; }
.menus-meal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.menus-meal-header h4 { margin: 0; color: var(--nl-teal-dark); font-size: 15px; }
.menus-dish-idea { font-size: 12.5px; color: #34495e; font-weight: 600; margin-top: 2px; }
.menus-meal-kcal { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--nl-teal-dark); background: #e3f2f4; padding: 3px 8px; border-radius: 999px; }
.menus-tip { margin: 0; font-size: 12px; color: #526b7e; font-style: italic; }
.menus-food-list { display: flex; flex-direction: column; gap: 8px; }
.menus-food-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e1eaee; border-radius: 8px; background: #fff; }
.menus-food-meta { flex: 1 1 180px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.menus-group-badge { font-size: 11px; font-weight: 700; color: #526b7e; text-transform: uppercase; letter-spacing: 0.03em; }
.menus-food-select { width: 100%; padding: 6px 8px; border: 1px solid #c5d4dc; border-radius: 6px; font-size: 13.5px; background: #fff; }
.menus-portion-text { font-size: 12px; color: #475467; }
.menus-food-controls { display: flex; align-items: center; gap: 6px; }
.menus-eq-input { width: 64px; padding: 6px; border: 1px solid #c5d4dc; border-radius: 6px; font-size: 13.5px; text-align: center; }
.menus-swap-btn { padding: 6px 10px; border: 1px solid #7896a9; border-radius: 6px; background: #fff; color: #193647; font-size: 12.5px; font-weight: 600; cursor: pointer; min-height: 36px; }
.menus-swap-btn:hover { background: #eaf3f6; }
.menus-meal-note { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #d4e0e6; border-radius: 6px; font-size: 13px; }
.menus-shopping-details { margin-top: 14px; border: 1px solid var(--nl-border); border-radius: 8px; padding: 10px 14px; background: #fafcfd; }
.menus-shopping-details summary { font-weight: 700; color: var(--nl-ink); cursor: pointer; }
.menus-shopping-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.menus-shop-cat h5 { margin: 0 0 6px; color: var(--nl-teal-dark); font-size: 13px; }
.menus-shop-cat ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.nl-mobile-topbar { display: none; }
.nl-sidebar-backdrop { display: none; }
dialog.nl-dialog {
padding: 0;
border: 0;
border-radius: 12px;
background: transparent;
max-width: min(440px, calc(100vw - 28px));
width: 100%;
box-shadow: 0 20px 50px rgba(15, 39, 54, 0.32);
}
dialog.nl-dialog::backdrop {
background: rgba(15, 39, 54, 0.58);
backdrop-filter: blur(3px);
}
.nl-dialog-card {
background: #fff;
border: 1px solid var(--nl-border);
border-radius: 12px;
padding: 20px 22px;
color: var(--nl-ink);
}
.nl-dialog-title { margin: 0 0 8px; font-size: 18px; color: var(--nl-teal-dark); }
.nl-dialog-message { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #34495e; white-space: pre-line; }
.nl-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.nl-dialog-btn {
min-height: 44px;
padding: 10px 18px;
border-radius: 8px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
border: 1px solid transparent;
}
.nl-dialog-btn-primary { background: var(--nl-teal); color: #fff; }
.nl-dialog-btn-primary:hover { background: var(--nl-teal-dark); }
.nl-dialog-btn-secondary { background: #f4f7f9; color: #24384a; border-color: #c8d6df; }
.nl-dialog-btn-danger { background: #b8332a; color: #fff; }
.nl-toast-region {
position: fixed;
right: 16px;
bottom: calc(16px + env(safe-area-inset-bottom));
z-index: 9500;
display: flex;
flex-direction: column;
gap: 8px;
max-width: min(360px, calc(100vw - 32px));
pointer-events: none;
}
.nl-toast {
padding: 11px 15px;
border-radius: 9px;
background: #173647;
color: #fff;
font-size: 13.5px;
line-height: 1.4;
box-shadow: 0 8px 24px rgba(15, 39, 54, 0.25);
}
.nl-toast-error { background: #8c1d18; }
.nl-toast-success { background: #1c6b4e; }
.equivalentes-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.equivalentes-table th:first-child,
.equivalentes-table td:first-child {
position: sticky;
left: 0;
background: #fff;
z-index: 1;
}
@media (max-width: 960px) {
body {
display: block;
height: auto;
min-height: 100dvh;
overflow-x: hidden;
}
.nl-mobile-topbar {
position: sticky;
top: 0;
z-index: 1800;
display: flex;
align-items: center;
gap: 12px;
min-height: 56px;
padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
background: #173a4c;
color: #fff;
box-shadow: 0 2px 10px rgba(15, 39, 54, 0.18);
}
.nl-mobile-menu-btn {
min-width: 44px;
min-height: 44px;
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 22px;
line-height: 1;
cursor: pointer;
flex: 0 0 auto;
}
.nl-mobile-topbar-title {
display: flex;
flex-direction: column;
min-width: 0;
}
.nl-mobile-topbar-title strong {
font-size: 14px;
letter-spacing: 0.02em;
opacity: 0.9;
}
.nl-mobile-topbar-title span {
font-size: 15px;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nl-sidebar-backdrop {
display: block;
position: fixed;
inset: 0;
z-index: 2050;
background: rgba(15, 39, 54, 0.55);
}
.nl-sidebar-backdrop[hidden] { display: none; }
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 2100;
width: min(300px, 84vw);
max-height: none;
height: 100dvh;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: calc(24px + env(safe-area-inset-bottom));
box-sizing: border-box;
transform: translateX(-105%);
transition: transform 0.22s ease;
box-shadow: 6px 0 28px rgba(0, 0, 0, 0.3);
overflow-y: auto;
overscroll-behavior: contain;
}
.sidebar.is-drawer-open { transform: translateX(0); }
.sidebar.is-collapsed { width: min(300px, 84vw); max-height: none; overflow-y: auto; }
.sidebar.is-collapsed > :not(.sidebar-brand) { display: block !important; }
.sidebar .menu-btn,
.sidebar .nl-lock-button { min-height: 44px; }
.content {
padding: 14px 12px calc(86px + env(safe-area-inset-bottom));
overflow-y: visible;
}
.card { padding: 16px; border-radius: 10px; }
.input-group input,
.input-group select,
.input-group textarea,
.menus-food-select,
.menus-eq-input,
.menus-meal-note,
.pes-editor textarea,
.pes-editor select {
font-size: 16px;
min-height: 44px;
}
.btn-calcular,
.btn-toggle-datos,
.menus-day-tab,
.menus-swap-btn {
min-height: 44px;
}
.menus-meals-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
.sidebar,
.menu-btn,
.btn-calcular,
.btn-aceptar-terminos {
transition: none !important;
}
}
