/* Painel administrativo — menu lateral compacto (menos espaço entre linhas e grupos). */
.fi-sidebar-nav { row-gap: 0.5rem; padding-block: 0.75rem; }
.fi-sidebar-nav-groups { row-gap: 0.25rem; }
.fi-sidebar-group { row-gap: 0; }
.fi-sidebar-group-btn { padding: 0.25rem 0.5rem; }
.fi-sidebar-group-items { row-gap: 0; }
.fi-sidebar-item-btn { padding: 0.3rem 0.5rem; column-gap: 0.625rem; border-radius: 0.5rem; }
.fi-sidebar-item-btn svg, .fi-sidebar-group-btn > svg { width: 1.125rem; height: 1.125rem; }
.fi-sidebar-item-label, .fi-sidebar-group-label { font-size: 0.8125rem; line-height: 1.25rem; }

/* Atendimento virtual — conversa no painel (estilo mensageiro) */
.aki-chat-admin { display: flex; flex-direction: column; border-radius: 0.75rem; overflow: hidden; border: 1px solid rgba(120,120,120,.25); max-width: 56rem; }
.aki-chat-thread { height: min(60vh, 560px); overflow-y: auto; padding: 1rem; background: #efeae2; display: flex; flex-direction: column; gap: .4rem; }
.dark .aki-chat-thread { background: #0b141a; }
.aki-chat-row { display: flex; }
.aki-chat-row.is-mine { justify-content: flex-end; }
.aki-chat-bubble { max-width: 78%; padding: .45rem .7rem .3rem; border-radius: .6rem; background: #fff; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.13); font-size: .875rem; line-height: 1.35; word-break: break-word; }
.is-mine .aki-chat-bubble { background: #d9fdd3; }
.dark .aki-chat-bubble { background: #202c33; color: #e9edef; }
.dark .is-mine .aki-chat-bubble { background: #005c4b; }
.aki-chat-bubble p { margin: 0; }
.aki-chat-author { display: block; font-size: .72rem; color: #b45309; margin-bottom: .1rem; }
.aki-chat-meta { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: .15rem; }
.aki-chat-meta .is-read { color: #34b7f1; opacity: 1; }
.aki-chat-system { text-align: center; margin: .35rem 0; }
.aki-chat-system span { display: inline-block; background: rgba(255,244,196,.95); color: #54656f; font-size: .75rem; padding: .25rem .65rem; border-radius: .5rem; max-width: 85%; }
.aki-chat-empty { text-align: center; opacity: .6; margin: auto; }
.aki-chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem; gap: .5rem; align-items: end; padding: .6rem; background: #f0f2f5; }
.dark .aki-chat-compose { background: #202c33; }
.aki-chat-compose textarea { width: 100%; min-width: 0; resize: none; max-height: 8rem; border: 0; border-radius: 1.25rem; padding: .6rem 1rem; font-size: .875rem; background: #fff; color: #111b21; }
.dark .aki-chat-compose textarea { background: #2a3942; color: #e9edef; }
.aki-chat-compose button { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 9999px; background: #00a884; color: #fff; display: grid; place-items: center; cursor: pointer; }
.aki-chat-compose button:disabled { opacity: .6; }

/* Atendimento virtual — card de visitantes online */
.aki-online { display: grid; grid-template-columns: minmax(11rem, 14rem) 1fr; gap: 1.5rem; align-items: start; }
.aki-online-total { display: grid; gap: .25rem; justify-items: start; }
.aki-online-number { font-size: 3rem; font-weight: 700; line-height: 1; color: #16a34a; }
.aki-online-label { font-size: .875rem; opacity: .75; }
.aki-online-status { margin-top: .5rem; font-size: .75rem; font-weight: 600; padding: .15rem .6rem; border-radius: 9999px; }
.aki-online-status.is-on { background: #dcfce7; color: #166534; }
.aki-online-status.is-off { background: #f3f4f6; color: #4b5563; }
.dark .aki-online-status.is-on { background: #14532d; color: #bbf7d0; }
.dark .aki-online-status.is-off { background: #374151; color: #d1d5db; }
.aki-online-list { display: grid; gap: .35rem; max-height: 14rem; overflow-y: auto; }
.aki-online-item { display: flex; align-items: center; gap: .65rem; font-size: .8125rem; padding: .35rem .5rem; border-radius: .5rem; background: rgba(120,120,120,.07); }
.aki-online-item > div { flex: 1; min-width: 0; }
.aki-online-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aki-online-item small { display: block; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aki-online-item time { font-size: .72rem; opacity: .6; flex: none; }
.aki-online-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; flex: none; }
.aki-online-empty { margin: 0; opacity: .6; font-size: .875rem; }
@media (max-width: 640px) { .aki-online { grid-template-columns: 1fr; } }

.aki-chat-offline-note { padding: .6rem 1rem; font-size: .8125rem; background: #fef3c7; color: #92400e; }
.dark .aki-chat-offline-note { background: #451a03; color: #fde68a; }

.aki-online-btn { flex: none; border: 0; border-radius: .5rem; padding: .3rem .7rem; font-size: .75rem; font-weight: 600; background: #f59e0b; color: #fff; cursor: pointer; text-decoration: none; }
.aki-online-btn:hover { background: #d97706; }
.aki-online-btn:disabled { opacity: .6; }
.aki-online-btn.is-link { background: #16a34a; }
.aki-online-btn.is-link:hover { background: #15803d; }
