/* El módulo conserva el contenido del HTML y se integra en el panel del administrador y vendedora. */
.recordatorios-demo,
.recordatorios-admin {
    font-family: 'DM Sans', sans-serif;
    color: #111;
    background: #f5f5f7;
    border-radius: 14px;
}

.recordatorios-demo .admin-page-title,
.recordatorios-admin .admin-page-title {
    color: #1a3a72;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
}

.recordatorios-demo .admin-page-subtitle,
.recordatorios-admin .admin-page-subtitle {
    line-height: 1.55;
}

.recordatorios-demo .admin-panel-card,
.recordatorios-admin .admin-panel-card {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #e5e5e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 24px rgb(26 58 114 / 5%);
}

.recordatorios-demo .admin-panel-card h2,
.recordatorios-admin .admin-panel-card h2 {
    font-family: 'Nunito', sans-serif;
}

.recordatorios-demo .table th,
.recordatorios-admin .table th {
    white-space: nowrap;
}

.recordatorios-demo .accordion-button:not(.collapsed),
.recordatorios-admin .accordion-button:not(.collapsed),
.recordatorios-demo .list-group-item.active,
.recordatorios-admin .list-group-item.active {
    color: #fff;
    background: #1a3a72;
    border-color: #1a3a72;
}

.recordatorios-demo .btn-outline-primary,
.recordatorios-admin .btn-outline-primary {
    color: #1a3a72;
    border-color: #1a3a72;
}

.recordatorios-demo .btn-outline-primary:hover,
.recordatorios-admin .btn-outline-primary:hover {
    color: #fff;
    background: #1a3a72;
}

.recordatorios-demo .footer-salomon-pro,
.recordatorios-admin .footer-salomon-pro {
    background-color: transparent;
    border-top: 1px solid #e5e5e7;
    padding: 16px 0;
}

/* --- ESTILOS DE PLANTILLAS META WHATSAPP CLOUD API --- */
.recordatorios-admin .wa-tabs-switcher,
.wa-tabs-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px !important;
    max-width: 100%;
    box-sizing: border-box;
}

.recordatorios-admin .wa-tab-btn,
.cg .recordatorios-admin .wa-tab-btn,
.wa-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none !important;
    outline: none !important;
    border-radius: 9999px !important;
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.recordatorios-admin .wa-tab-btn:hover:not(.active),
.cg .recordatorios-admin .wa-tab-btn:hover:not(.active),
.wa-tab-btn:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #1e293b !important;
}

.recordatorios-admin .wa-tab-btn.active,
.cg .recordatorios-admin .wa-tab-btn.active,
.wa-tab-btn.active {
    background-color: #1a3a72 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(26, 58, 114, 0.25) !important;
}

.recordatorios-admin .wa-tab-btn.active .badge,
.cg .recordatorios-admin .wa-tab-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.recordatorios-admin .wa-tab-btn:not(.active) .badge,
.cg .recordatorios-admin .wa-tab-btn:not(.active) .badge {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}

/* .cg.recordatorios-admin (same element) so these beat `.cg .badge`, which forces white text. */
.cg.recordatorios-admin .wa-badge-approved {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.cg.recordatorios-admin .wa-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.cg.recordatorios-admin .wa-badge-rejected {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.cg.recordatorios-admin .wa-badge-paused {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.wa-pill-var {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.85em;
    border: 1px solid #bae6fd;
}

/* Vista previa de WhatsApp (Smartphone bubble) */
.wa-preview-screen {
    background: #eae6df url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d1cbbe' fill-opacity='0.25' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 14px;
    padding: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.wa-preview-header-bar {
    background-color: #075e54;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px 10px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -14px -14px 12px -14px;
}
.wa-bubble-card {
    background-color: #ffffff;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    padding: 8px 10px;
    max-width: 90%;
    align-self: flex-start;
    position: relative;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa-bubble-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}
.wa-bubble-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111b21;
    margin-bottom: 4px;
}
.wa-bubble-body {
    font-size: 0.88rem;
    color: #111b21;
    line-height: 1.4;
    white-space: pre-wrap;
}
.wa-bubble-footer {
    font-size: 0.72rem;
    color: #667781;
    margin-top: 6px;
    line-height: 1.3;
}
.wa-bubble-meta {
    font-size: 0.68rem;
    color: #667781;
    text-align: right;
    margin-top: 2px;
}
.wa-preview-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.wa-preview-btn {
    background-color: #ffffff;
    color: #00a884;
    font-weight: 600;
    font-size: 0.84rem;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
}
.wa-preview-btn:hover {
    background-color: #f7fdfc;
    color: #008f6f;
}


