/* =====================================================================
   Layout · estilos generales del panel (AdminLTE 4)
   ===================================================================== */

/* ----- Marca ----- */
:root {
    --brand: #6f42c1;
}

/* ----- Avatar (iniciales o icono) ----- */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    flex: none;
    font-size: .85rem;
    background: var(--brand);
}

.avatar.sm {
    width: 30px;
    height: 30px;
}

.avatar.lg {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
}

/* ----- Selector de evento (barra superior) ----- */
.ev-switch .dropdown-menu {
    max-height: 60vh;
    overflow: auto;
    min-width: 300px;
}

/* ----- Notificaciones ----- */
#Toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ----- Vista estilo WhatsApp (credenciales y mensajes) ----- */
.wa-chat {
    background: #e5ddd5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d4ccc3'/%3E%3C/svg%3E");
    border-radius: 12px;
    padding: 16px;
    min-height: 160px;
}

[data-bs-theme=dark] .wa-chat {
    background-color: #0b141a;
}

.wa-bubble {
    background: #fff;
    color: #111;
    border-radius: 0 10px 10px 10px;
    padding: 8px 10px 18px;
    max-width: 92%;
    position: relative;
    white-space: pre-wrap;
    font-size: .92rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}

[data-bs-theme=dark] .wa-bubble {
    background: #202c33;
    color: #e9edef;
}

.wa-bubble .wa-time {
    position: absolute;
    right: 8px;
    bottom: 3px;
    font-size: .68rem;
    opacity: .55;
}

.wa-bubble .wa-foot {
    display: block;
    font-size: .78rem;
    opacity: .6;
    margin-top: 4px;
}

.wa-btn {
    background: #fff;
    color: #0a7cff;
    text-align: center;
    border-radius: 10px;
    padding: 7px;
    margin-top: 4px;
    max-width: 92%;
    font-size: .9rem;
    font-weight: 500;
}

[data-bs-theme=dark] .wa-btn {
    background: #202c33;
    color: #53bdeb;
}

/* ----- Tarjetas de totales (small-box) ----- */
.small-box {
    position: relative;
    overflow: hidden;
}

.small-box .bi.small-box-icon {
    font-size: 72px;
    position: absolute;
    top: 8px;
    right: 14px;
    opacity: .22;
    line-height: 1;
}

/* ----- Tablas y textos ----- */
.table td,
.table th {
    vertical-align: middle;
}

.page-note {
    font-size: .85rem;
}

/* ----- Logo de la marca en el menú lateral ----- */
.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
}
