/* Wanadi v0.9.8: conserva temas v0.9.2 y navegación v0.9.5 */
.w98-actionbar,.w98-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:16px}
.w98-actionbar label,.w98-fields label{flex:1 1 175px;min-width:0}
.w98-fields{margin:12px 0}
.w98-check{display:flex;align-items:center;gap:8px;padding:8px 2px}
.w98-check input{width:18px;height:18px;flex-shrink:0}
#w98ReportsPane .table-wrap{max-height:480px;overflow:auto}
.w98-fields input,.w98-fields select{max-width:100%}
/* Encabezado móvil: aviso de MikroTik sin falsa señal roja, cuenta de usuario visible */
@media(max-width:700px){.w98-actionbar>button{width:100%}.w98-fields label{flex-basis:135px}}
/* Notificaciones: ocultar advertencia de instalación antigua, solo si SQL 07 ya fue instalado */
.v08-evolution-notice[data-obsolete="true"]{display:none!important}
/* Contraste legible incluso en el tema oscuro. */
.v09-chatmessages,.v09-chatmessages *{color:inherit}
.v09-chatmessages .v09-chat-out,.v09-chatmessages .v09-chat-out *{color:#132e32!important}
.v09-chatmessages .v09-chat-in,.v09-chatmessages .v09-chat-in *{color:#163145!important}
.v09-chatmessages{background:linear-gradient(135deg,#e8f1f4,#d4e7e8);border-radius:12px;padding:12px;overflow-wrap:anywhere}
.v09-chatlist{overflow-x:hidden}
.v09-chatlist *{overflow-wrap:anywhere}
.v08-chatdrawer{max-height:calc(100dvh - 90px)!important;overflow-y:auto;overscroll-behavior:contain}
.v08-chatbubble{background:#11a35d!important;border-radius:35% 35% 35% 12%!important}
.v08-chatbubble svg{vertical-align:middle}
:root[data-wanadi-theme] .v09-chatdrawer{border-radius:17px!important;box-shadow:0 16px 35px #00183255!important}
:root[data-wanadi-theme] .v09-chatmessages .v09-chatmsg,
:root[data-wanadi-theme] .v09-chatmessages .v09-chatmsg div{color:#152f35!important;background:#fcffff!important}
:root[data-wanadi-theme] .v09-chatmessages .v09-chatmsg.out,
:root[data-wanadi-theme] .v09-chatmessages .v09-chatmsg.out div{background:#def7d9!important;color:#132b22!important}
:root[data-wanadi-theme] .v09-chatmessages .v09-chatmsg small{color:#46615d!important}
:root[data-wanadi-theme] .v09-chatlist .v09-chatperson{color:#11345e!important;background:#f0f8ff!important}
:root[data-wanadi-theme] .v09-chatlist .v09-chatperson small{color:#456681!important}
:root[data-wanadi-theme] .v09-chatlist .v09-chatperson.selected{background:#d0eaff!important}
:root[data-wanadi-theme] .v09-chathead{color:inherit!important}
:root[data-wanadi-theme] #logoutButton::before{content:none!important}
:root[data-wanadi-theme] #logoutButton svg{display:block;stroke:#0b417f}
:root[data-wanadi-theme] #logoutButton{font-size:12px!important;line-height:1.3!important}
:root[data-wanadi-theme] .w098-unknown-router i{color:#b3bfd0!important}
:root[data-wanadi-theme] .w098-chat-header{display:flex;gap:9px;align-items:center}
:root[data-wanadi-theme] .w098-chat-header svg{width:26px;height:26px;stroke:#15ba7c}
@media(max-width:740px){:root[data-wanadi-theme] .w098-logout-label{display:none!important}:root[data-wanadi-theme] #logoutButton{font-size:0!important}}
.w98-event-list{display:grid;gap:10px;margin:12px 0}
.w98-event-list details{border:1px solid #5e9cc7;border-radius:11px;padding:10px}
.w98-event-list summary{cursor:pointer;font-weight:750}
.w98-event-list textarea{width:100%;margin:8px 0;line-height:1.5;white-space:pre-wrap}
