/* u0-alerts.css — 2026-11-09 — alertas (campanita + página Mostrar alertas).
   Marcado en Themes/underc0de/Profile.template.php (template_alerts_popup / template_showAlerts). */

/* ---------- Avatar + insignia de tipo (compartido) ---------- */
.u0al-av{position:relative;flex:0 0 auto;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center}
.u0al-av img.avatar,.u0al-av .avatar{width:40px !important;height:40px !important;max-width:none !important;max-height:none !important;border-radius:50%;object-fit:cover;background:#1a1c36;display:block;margin:0 !important}
.u0al-av-sys{border-radius:50%;background:#212349;color:rgba(255,255,255,.85);font-size:17px;border:1px solid rgba(255,255,255,.08)}
.u0al-av-sys > .u0al-type{display:none}
.u0al-type{position:absolute;right:-4px;bottom:-3px;width:19px;height:19px;border-radius:50%;background:#212349;border:2px solid #0b0c18;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1;color:#fff}
.u0al-t-msg .fa{color:#9fdcf5}
.u0al-t-good .fa{color:#6fdc9c}
.u0al-t-warn .fa{color:#F2C94C}
.u0al-t-info .fa{color:rgba(255,255,255,.8)}
.u0al-av-sys .fa{line-height:1}

/* ---------- Popup de la campanita ---------- */
body.u0 #alerts_menu{width:min(25rem,calc(100vw - 16px));max-height:none !important;height:auto !important;padding:0 !important;overflow:hidden;background:#0b0c18 !important;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 32px rgba(0,0,0,.6)}
/* SMF envuelve .scrollable con un scroll JS (.viewport/.overview de alto fijo): se anula y la lista scrollea nativa */
#alerts_menu > .viewport{height:auto !important;overflow:visible !important;position:static !important}
#alerts_menu > .viewport > .overview{position:static !important;top:0 !important;width:auto !important}
#alerts_menu > .scroll-bar{display:none !important}
#alerts_menu .u0al-pop{display:flex;flex-direction:column;max-height:min(34rem,calc(100vh - 6rem))}
#alerts_menu .u0al-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 10px 14px;border-bottom:1px solid rgba(255,255,255,.08);background:#10112a}
#alerts_menu .u0al-title{font-weight:600;font-size:.95rem;color:#fff;display:inline-flex;align-items:center;gap:8px}
#alerts_menu .u0al-count{display:inline-block;min-width:20px;padding:1px 7px;border-radius:10px;background:#212349;border:1px solid rgba(60,183,234,.35);color:#fff;font-size:.75rem;text-align:center;font-weight:600}
#alerts_menu .u0al-count[hidden],#alerts_menu .u0al-markall[hidden]{display:none !important}
#alerts_menu .u0al-head-acts{display:inline-flex;align-items:center;gap:4px}
body.u0 #alerts_menu .u0al-head a{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;font-size:.8rem;color:rgba(255,255,255,.78) !important;text-decoration:none;white-space:nowrap}
body.u0 #alerts_menu .u0al-head a:hover,body.u0 #alerts_menu .u0al-head a:focus-visible{background:rgba(255,255,255,.07) !important;color:#fff !important}
#alerts_menu .u0al-iconbtn{font-size:.95rem !important}
#alerts_menu .u0al-list{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:0;margin:0;background:none !important}
body.u0 #alerts_menu .unread_notify.u0al-item{display:flex !important;align-items:flex-start;gap:12px;padding:11px 30px 11px 14px !important;margin:0;position:relative;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(60,183,234,.045) !important;box-shadow:inset 2px 0 0 #3CB7EA;color:rgba(255,255,255,.88) !important;text-decoration:none;min-height:0;float:none;width:auto}
body.u0 #alerts_menu .unread_notify.u0al-item:last-child{border-bottom:0}
body.u0 #alerts_menu .unread_notify.u0al-item:hover,body.u0 #alerts_menu .unread_notify.u0al-item:focus-visible{background:rgba(255,255,255,.06) !important;color:#fff !important}
body.u0 #alerts_menu .unread_notify.u0al-item.alert_read{box-shadow:none;opacity:.6}
#alerts_menu .u0al-item .details{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;padding:0;margin:0}
#alerts_menu .u0al-item .alert_text{font-size:.875rem;line-height:1.4;color:rgba(255,255,255,.86);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#alerts_menu .u0al-item .alert_text strong,#alerts_menu .u0al-item .alert_text b{color:#fff;font-weight:600}
#alerts_menu .u0al-item .alert_text a{color:#fff !important;font-weight:600;background:none !important}
#alerts_menu .u0al-meta{font-size:.75rem;color:rgba(255,255,255,.55)}
#alerts_menu .u0al-meta time{font-weight:400}
#alerts_menu .u0al-dot{position:absolute;right:13px;top:16px;width:8px;height:8px;border-radius:50%;background:#3CB7EA}
#alerts_menu .alert_read .u0al-dot{display:none}
#alerts_menu .no_unread{padding:28px 16px;text-align:center;color:rgba(255,255,255,.6);font-size:.875rem;background:none;border:0}
#alerts_menu .no_unread::before{content:"\f0a2";font-family:FontAwesome;display:block;font-size:22px;margin-bottom:8px;color:rgba(255,255,255,.35)}
body.u0 #alerts_menu a.u0al-foot{display:flex;justify-content:center;align-items:center;gap:6px;padding:11px 14px;border-top:1px solid rgba(255,255,255,.08);background:#10112a !important;color:rgba(255,255,255,.85) !important;font-size:.85rem;font-weight:500;text-decoration:none}
body.u0 #alerts_menu a.u0al-foot:hover,body.u0 #alerts_menu a.u0al-foot:focus-visible{color:#fff !important;background:#16183a !important}

@media (max-width:640px){
	body.u0 #alerts_menu{position:fixed !important;top:64px !important;left:8px !important;right:8px !important;width:auto !important;max-width:none !important;margin:0 !important;transform:none !important}
	#alerts_menu .u0al-pop{max-height:calc(100vh - 200px);max-height:calc(100dvh - 200px)}
	#alerts_menu .u0al-item .alert_text{font-size:.9rem}
}

/* ---------- Página: perfil > Mostrar alertas ---------- */
.u0al-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 4px;padding:10px 14px;background:#0b0c18;border:1px solid rgba(255,255,255,.08);border-radius:6px}
.u0al-summary{font-size:.9rem;color:rgba(255,255,255,.7)}
.u0al-summary strong{color:#fff}
.u0al-tools-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.u0al-inline{display:inline;margin:0}
body.u0 .u0al-tools .button,body.u0 .u0al-tools a.button,body.u0 .u0al-foot-page a.button.u0al-btn-ghost{font-family:inherit;font-weight:500;display:inline-flex;align-items:center;gap:7px;margin:0;height:auto;min-height:36px;padding:7px 14px;font-size:.85rem;line-height:1.2;text-transform:none;letter-spacing:0;border-radius:6px}
body.u0 .u0al-tools button.button.u0al-btn-primary{background:#212349 !important;border:1px solid rgba(60,183,234,.45) !important;color:#fff !important}
body.u0 .u0al-tools .u0al-btn-primary:hover{background:#2a2d5c !important;border-color:#3CB7EA !important}
body.u0 a.button.u0al-btn-ghost,body.u0 .u0al-btn-ghost{background:transparent !important;border:1px solid rgba(255,255,255,.16) !important;color:rgba(255,255,255,.82) !important}
body.u0 a.button.u0al-btn-ghost:hover,body.u0 .u0al-btn-ghost:hover{border-color:rgba(255,255,255,.35) !important;color:#fff !important}

.u0al-page{margin:6px 0 0}
.u0al-group{margin:18px 0 6px;padding:0 4px;font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.u0al-rows{list-style:none;margin:0;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:6px;overflow:hidden;background:#090a14}
.u0al-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.06);position:relative}
.u0al-row:last-child{border-bottom:0}
.u0al-row:hover{background:rgba(255,255,255,.03)}
.u0al-row.is-unread{background:rgba(60,183,234,.05);box-shadow:inset 3px 0 0 #3CB7EA}
.u0al-row.is-unread:hover{background:rgba(60,183,234,.08)}
.u0al-body{flex:1 1 auto;min-width:0}
.u0al-text{font-size:.925rem;line-height:1.45;color:rgba(255,255,255,.78);overflow-wrap:anywhere}
.u0al-row.is-unread .u0al-text{color:#fff}
body.u0 .u0al-text a{color:#fff !important;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.22)}
body.u0 .u0al-text a:hover{border-bottom-color:#3CB7EA}
.u0al-row.is-read .u0al-text a{color:rgba(255,255,255,.88) !important}
.u0al-text strong{color:inherit}
.u0al-meta{display:flex;align-items:center;gap:8px;margin-top:3px;font-size:.78rem;color:rgba(255,255,255,.52)}
.u0al-new{display:inline-block;padding:0 7px;border-radius:9px;background:#212349;border:1px solid rgba(60,183,234,.4);color:#fff;font-size:.7rem;font-weight:600;line-height:1.5;letter-spacing:.02em}
.u0al-acts{flex:0 0 auto;display:flex;align-items:center;gap:4px}
body.u0 .u0al-act{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:34px;height:34px;padding:0 8px;border-radius:6px;color:rgba(255,255,255,.62) !important;text-decoration:none;font-size:.85rem;background:none;border:1px solid transparent}
body.u0 .u0al-act:hover,body.u0 .u0al-act:focus-visible{background:rgba(255,255,255,.07);color:#fff !important;border-color:rgba(255,255,255,.12)}
body.u0 .u0al-act-view{color:rgba(255,255,255,.85) !important;border-color:rgba(255,255,255,.14)}
body.u0 .u0al-act-del:hover{color:#ff8a8a !important}
.u0al-check{display:inline-flex;align-items:center;padding:0 4px}
.u0al-foot-page{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.u0al-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.u0al-empty{padding:40px 16px;text-align:center;color:rgba(255,255,255,.62);background:#090a14;border:1px solid rgba(255,255,255,.08);border-radius:6px;margin-top:10px}
.u0al-empty .fa{font-size:28px;color:rgba(255,255,255,.3);display:block;margin-bottom:10px}

@media (max-width:640px){
	.u0al-tools{padding:10px}
	.u0al-tools-acts{width:100%}
	.u0al-inline{flex:1 1 auto}
	body.u0 .u0al-tools button.button.u0al-btn-primary{width:100%;justify-content:center}
	.u0al-hide-sm{display:none}
	/* las acciones van a la derecha de la línea de fecha, sin ocupar una fila propia */
	.u0al-row{align-items:flex-start;column-gap:12px;row-gap:0;padding:12px 8px 10px 10px;flex-wrap:wrap}
	.u0al-body{flex-basis:calc(100% - 56px)}
	.u0al-meta{min-height:34px;margin-top:2px;padding-right:140px}
	.u0al-acts{margin:-34px 0 0 auto;gap:2px}
	body.u0 .u0al-act{height:34px;min-width:36px}
}
