/* Estilos para el Gestor de Campañas Omnicanal */
.offcanvas-le {
    width: 1050px !important;
    border-left: 1px solid #dcdcdc;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

.offcanvas-header-le {
    border-bottom: 1px solid #eee;
    padding: 15px 25px;
    background: #fff;
}

.offcanvas-title-le {
    color: #6c757d;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0;
}

.btn-close-le {
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}

    .btn-close-le:hover {
        color: #dc3545;
    }

.section-box {
    border: 1px dashed #cccccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .section-box:hover, .section-box:focus-within {
        box-shadow: 4px 8px 8px rgba(0, 0, 0, 0.2);
        border-color: #999;
    }

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.form-label-le {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.form-control-le {
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 0.85rem;
    padding: 6px 10px;
}

    .form-control-le:focus {
        border-color: #6f42c1;
        box-shadow: none;
        outline: 0;
    }

.btn-purple {
    background-color: #6f42c1;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
}

    .btn-purple:hover {
        background-color: #5a32a3;
        color: white;
    }

.btn-outline-le {
    border: 1px solid #dcdcdc;
    color: #555;
    background: #fff;
    border-radius: 2px;
    font-size: 0.85rem;
    padding: 6px 15px;
}

    .btn-outline-le:hover {
        background: #f8f9fa;
        border-color: #6f42c1;
        color: #6f42c1;
    }

.form-check-label-le {
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.channel-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.channel-btn {
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #555;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    opacity: 0.6;
}

    .channel-btn:hover {
        background: #f8f9fa;
        opacity: 0.8;
    }

    .channel-btn.active {
        opacity: 1;
        border-width: 2px;
    }

        .channel-btn.active[data-channel="whatsapp"] {
            background: #e8f5e9;
            border-color: #25D366;
            color: #128c7e;
        }

        .channel-btn.active[data-channel="sms"] {
            background: #f8f9fa;
            border-color: #6c757d;
            color: #343a40;
        }

        .channel-btn.active[data-channel="email"] {
            background: #fdf3f4;
            border-color: #dc3545;
            color: #c82333;
        }

        .channel-btn.active[data-channel="instagram"] {
            background: #fdf2f7;
            border-color: #E1306C;
            color: #c13584;
        }

.dropdown-select-btn {
    border-color: #e0e0e0;
    background-color: #fff;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
}

    .dropdown-select-btn:hover, .dropdown-select-btn:focus {
        background-color: #f8f9fa;
        color: #555;
        border-color: #6f42c1;
    }

#offcanvasCampana .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    padding: 10px 0 !important;
}

.dropdown-header-le {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888888;
    padding: 8px 15px 4px 15px;
    letter-spacing: 0.5px;
}

.option-item {
    color: #555 !important;
    font-size: 0.85rem;
    padding: 8px 15px;
    transition: all 0.15s ease;
    border-radius: 4px;
    margin: 0 5px;
    width: auto;
    background-color: transparent !important;
}

    .option-item:hover {
        background-color: #f0f0f0 !important;
        color: #333 !important;
    }

    .option-item .item-icon {
        color: #cccccc;
        margin-right: 8px;
        transition: color 0.15s ease;
        font-size: 1rem;
        vertical-align: middle;
    }

    .option-item:hover .item-icon {
        color: #555555;
    }

.billing-row {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px dashed #e0e0e0;
    transition: background 0.2s;
}

    .billing-row:hover {
        background-color: #fafafa;
    }

.billing-col-icon {
    flex: 0 0 160px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.billing-col-config {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.billing-col-cost {
    flex: 0 0 120px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

/* ── Estilos del Offcanvas de ESTADÍSTICAS ──────────────────────────────── */
/* Tarjetas KPI Premium */
.stat-card-oc {
    background: #fff;
    border: 1px dashed #cccccc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s ease;
}

    .stat-card-oc:hover {
        border-style: solid;
        border-color: #6f42c1;
        box-shadow: 4px 8px 8px rgba(0,0,0,0.1);
        transform: translateY(-4px);
    }

.stat-icon-oc {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.stat-card-oc:hover .stat-icon-oc {
    transform: scale(1.1) rotate(5deg);
}

.stat-value-oc {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #1f2937;
}

.stat-label-oc {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.stat-subtext-oc {
    font-size: 0.75rem;
    color: #6b7280;
}

.stat-footer-oc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-badge-oc {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Colores Soft para iconos */
.bg-purple-soft {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.bg-success-soft {
    background-color: #ecfdf5;
    color: #10b981;
}

.bg-danger-soft {
    background-color: #fef2f2;
    color: #ef4444;
}

.bg-warning-soft {
    background-color: #fffbeb;
    color: #f59e0b;
}

/* Tendencias */
.trend-up-oc {
    color: #10b981;
    font-weight: 700;
}

.trend-down-oc {
    color: #ef4444;
    font-weight: 700;
}

/* Canal indicators */
.channel-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 8px;
    border: 1px solid transparent;
}

    .channel-indicator svg {
        height: 1.5em !important;
    }

.ci-wa {
    background: #ecfdf5;
    color: #065f46;
    border-color: #d1fae5;
}

.ci-sms {
    background: #f9fafb;
    color: #374151;
    border-color: #f3f4f6;
}

.ci-email {
    background: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

.ci-ig {
    background: #fdf2f7;
    color: #9d174d;
    border-color: #fce7f3;
}

/* Contenedor de canal (borde dashed) */
.channel-stat-box {
    padding: 15px;
    border: 1px dashed #e0e0e0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
}

    .channel-stat-box:hover {
        border-color: #999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

/* Barras de progreso */
.progress-le {
    height: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    margin-top: 8px;
    overflow: hidden;
}

.p-whatsapp {
    background: linear-gradient(90deg, #25D366, #128c7e);
}

.p-sms {
    background: linear-gradient(90deg, #9ca3af, #4b5563);
}

.p-email {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.p-instagram {
    background: linear-gradient(90deg, #f472b6, #db2777);
}

/* Tabla de actividad */
.table-le {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0 6px;
}

    .table-le thead th {
        border: none;
        text-transform: uppercase;
        font-size: 0.68rem;
        letter-spacing: 1px;
        color: #9ca3af;
        background: transparent;
    }

    .table-le tbody tr {
        background: #fff;
        transition: all 0.2s;
    }

        .table-le tbody tr:hover {
            transform: scale(1.005);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

    .table-le td {
        border: none;
        padding: 12px 10px;
    }

        .table-le td:first-child {
            border-radius: 10px 0 0 10px;
        }

        .table-le td:last-child {
            border-radius: 0 10px 10px 0;
        }

/* Avatar */
.avatar-oc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Badges de estado */
.status-badge-oc {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-leido {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-entregado {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-enviado {
    background: #f9fafb;
    color: #9ca3af;
}

.badge-fallido {
    background: #fee2e2;
    color: #991b1b;
}

.badge-exitoso {
    background: #d1fae5;
    color: #065f46;
}
