/* Marca Nostico sobre el tema oscuro de Oxigeno.
   El logo inverso (palabra clara y N en violeta claro) deriva del logo oficial para uso sobre fondo oscuro.
   El logo oficial original se conserva en las hojas claras (informe semanal). */
.nst-bar { display: flex; align-items: center; height: 56px; box-sizing: border-box; margin: 0 0 14px; padding: 0 22px; background: #0a1728; border-bottom: 3px solid #6544ac; position: relative; z-index: 30; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.nst-pad { margin: -16px -16px 16px; }
.nst-logo { display: flex; align-items: center; line-height: 0; text-decoration: none; }
.nst-logo img { height: 28px; width: auto; display: block; }
.nst-sep { width: 1px; height: 26px; background: #2c3d55; margin: 0 18px; flex: none; }
.nst-prod { font-size: 1.02rem; font-weight: 400; color: #dfe6ef; letter-spacing: .01em; white-space: nowrap; }
.nst-user { margin-left: auto; position: relative; }
.nst-user[hidden] { display: none; }
.nst-user-btn { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-radius: 8px; padding: 8px 8px; color: #e6edf5; font: 500 .9rem/1 inherit; font-family: inherit; cursor: pointer; }
.nst-user-btn:hover, .nst-user-btn[aria-expanded="true"] { background: #12233a; }
.nst-user-btn:focus-visible { outline: 2px solid #8b6bd8; outline-offset: 2px; }
.nst-user-btn svg { display: block; flex: none; }
.nst-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: #10223a; border: 1px solid #22405f; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); z-index: 60; }
.nst-menu[hidden] { display: none; }
.nst-menu-head { padding: 8px 12px 9px; margin-bottom: 4px; border-bottom: 1px solid #1e3a55; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #7f93ab; white-space: nowrap; }
.nst-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: #dbe7f5; text-decoration: none; font-size: .88rem; }
.nst-menu a:hover, .nst-menu a:focus-visible { background: #1a3453; outline: none; }
.nst-menu a.nst-out { color: #ff9f9f; }
@media (max-width: 720px) { .nst-prod, .nst-sep { display: none; } .nst-bar { padding: 0 14px; } .nst-logo img { height: 24px; } }
@media print { .nst-bar { display: none; } }

/* Config y Salir pasan al menu de usuario (en el panel quedan duplicados) */
.header-row a.btn-logout[href="/config.php"], .header-row a.btn-logout[href="/logout.php"] { display: none; }

/* Pantalla de acceso */
body.nst-login { background: #0d1b2a url(/brand/n-marca-agua.png) no-repeat right -90px bottom -70px / 640px auto; }
.nst-login-logo { display: flex; justify-content: center; margin: 0 0 16px; line-height: 0; }
.nst-login-logo img { height: 40px; width: auto; display: block; }
body.nst-login .card { border-top: 3px solid #6544ac; }
body.nst-login .card::after { content: "www.nostico.cl"; display: block; text-align: center; margin-top: 22px; font-size: .74rem; letter-spacing: .12em; color: #a98be0; }
body.nst-login .sub { text-align: center; }

/* Informe semanal (hoja clara imprimible): logo oficial sin placa */
.nst-report-logo { line-height: 0; margin: 0 0 6px; }
.nst-report-logo img { height: 62px; width: auto; }
