/* NIREJ C2 — notificaciones: campana, panel, avisos con botón y nota de encargo. */

/* ---------- campana ---------- */
.u-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.u-quien { min-width: 0; overflow-wrap: anywhere; }
.marca-acc { display: flex; align-items: center; gap: 8px; }
#campana-sitio, #campana-sitio-movil { display: inline-flex; flex: none; }
.campana { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #3b5a75; border-radius: 6px; background: none; color: #fff; cursor: pointer; }
.campana:hover, .campana[aria-expanded=true] { background: #12304a; border-color: #dbe3ec; }
.campana svg { display: block; }
.campana-globo { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--rojo); color: #fff; border: 2px solid var(--azul-prof); font: 700 11px/16px var(--titulos); text-align: center; }

/* ---------- panel (no modal) ---------- */
.notif-panel { position: fixed; z-index: 60; display: flex; flex-direction: column; box-sizing: border-box; max-width: 100vw; background: #fff; color: var(--tinta); border: 1px solid var(--borde-c); border-radius: 8px; box-shadow: 0 12px 36px rgba(0, 34, 58, .35); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-panel:focus { outline: none; }
.notif-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--borde); flex: none; }
.notif-cab h2 { font: 700 18px/1.3 var(--titulos); color: var(--azul-prof); }
.notif-todas { min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--azul); font: 600 14px var(--titulos); text-decoration: underline; cursor: pointer; text-align: right; }
.notif-todas:hover { color: var(--azul-prof); }
.notif-lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.notif-lista > li { border-top: 1px solid #e9ebe9; }
.notif-lista > li:first-child { border-top: 0; }
.notif-vacio { padding: 28px 18px; text-align: center; color: var(--gris-azul); }
.notif-fila { display: block; position: relative; width: 100%; box-sizing: border-box; padding: 12px 14px 12px 28px; border: 0; background: #fff; text-align: left; font: 14px/1.4 var(--texto); color: var(--tinta); cursor: pointer; }
.notif-fila:hover { background: #f4f7fb; }
.notif-fila:focus-visible { outline-offset: -3px; }
.notif-fila.sin-leer { background: #f3f8fe; }
.notif-fila.sin-leer:hover { background: #e8f1fc; }
.notif-fila.sin-leer::before { content: ''; position: absolute; left: 11px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--azul-bri); }
.notif-texto { display: block; font-size: 15px; overflow-wrap: anywhere; }
.notif-fila.sin-leer .notif-texto { font-weight: 700; }
.notif-quien { display: block; margin-top: 2px; color: var(--gris-azul); overflow-wrap: anywhere; }
.notif-nota { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-top: 6px; padding: 0 0 0 10px; border-left: 3px solid var(--azul-bri); background: #eef3f9; color: var(--tinta); font-style: italic; overflow-wrap: anywhere; white-space: pre-line; }
.notif-fecha { display: block; margin-top: 6px; font-size: 13px; color: var(--gris-azul); }

/* ---------- avisos con botón ---------- */
.aviso-accion { display: flex; align-items: center; gap: 14px; }
.aviso-texto { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.aviso-texto > span { display: block; }
.aviso-detalle { margin-top: 2px; font-size: 14px; color: #c5d3e2; }
.aviso-btn { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: #fff; color: var(--azul-prof); font: 700 14px var(--titulos); cursor: pointer; }
.aviso-btn:hover { background: #e8f1fc; }
#avisos .aviso-btn:focus-visible { outline-color: #fff; }

/* ---------- nota de encargo en diálogos ---------- */
.nota-encargo textarea { min-height: 72px; }

/* ---------- responsivo ---------- */
@media (max-width: 999px) {
  .u-fila { flex: 0 1 auto; }
}
@media (max-width: 719px) {
  .notif-panel { border-radius: 0; border-left: 0; border-right: 0; }
  .notif-fila { font-size: 15px; }
  #avisos { left: 16px; right: 16px; max-width: none; }
}
@media print { .notif-panel, .campana { display: none; } }
