/* RECAP.PRO - WhatsApp / Integração (Serviços) - Sidebar Layout */

/* Container principal - igual ao config */
.wa-container {
    display: flex;
    height: 100%;
    background: #fff;
}

/* Sidebar de navegação interna */
.wa-sidebar {
    width: 200px;
    background: #f3f3f3;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.wa-nav-item {
    padding: 12px 20px;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    transition: all 0.15s ease;
}

.wa-nav-item:hover {
    background: #e5f1fb;
}

.wa-nav-item.active {
    background: #fff;
    border-right: 3px solid #555;
    font-weight: 700;
    color: #555;
}

/* Conteúdo principal */
.wa-content {
    flex: 1;
    overflow: auto;
    padding: 30px;
    min-height: 400px;
}

/* Cabeçalho de seção */
.wa-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.wa-section-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.wa-section-header h3 i {
    color: #555;
}

/* Cards de status */
.wa-status-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.wa-status-card h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-status-indicator {
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-status-indicator.online {
    background: #f0faf0;
    border-left-color: #25D366;
}

.wa-status-indicator.offline {
    background: #fef2f2;
    border-left-color: #e74c3c;
}

.wa-status-indicator.warning {
    background: #fff8e1;
    border-left-color: #f0ad4e;
}

.wa-status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.wa-status-text {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.wa-status-detail {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

/* Info box */
.wa-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 16px;
    margin-top: 16px;
}

.wa-info-box p {
    margin: 0;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wa-info-box i {
    color: #555;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Grid de status */
.wa-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
}

/* RECAP.PRO - Modelos de Mensagem WhatsApp */
.mt-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mt-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.mt-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-card-title i { color: #25D366; }

.mt-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    background: #f0f0f0;
    color: #555;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.mt-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-badge-on  { background: #d4f4dd; color: #1f7a3e; }
.mt-badge-off { background: #f0f0f0; color: #999; }

.mt-card-desc {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.mt-card-vars {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.mt-var {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    background: #fff4e1;
    color: #b86e00;
    padding: 1px 6px;
    border-radius: 3px;
    margin: 2px 4px 2px 0;
    font-weight: 600;
}

.mt-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mt-editor,
.mt-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mt-editor label,
.mt-preview label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-editor textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background: #fafafa;
    box-sizing: border-box;
    color: #222;
}

.mt-editor textarea:focus {
    outline: none;
    border-color: #25D366;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.mt-preview-box {
    min-height: 180px;
    padding: 12px 14px;
    background: #d9fdd3;
    border-radius: 8px;
    border: 1px solid #b8e6a8;
    font-size: 13px;
    line-height: 1.6;
    color: #111;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mt-card-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Switch toggle */
.mt-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mt-switch input { display: none; }

.mt-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.mt-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.mt-switch input:checked + .mt-slider { background-color: #25D366; }
.mt-switch input:checked + .mt-slider::before { transform: translateX(20px); }

/* ============================================
   Fila de Mensagens - Tabela e Filtros
   ============================================ */

.wa-messages-wrapper {
    width: 100%;
}

.wa-messages-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wa-messages-filters input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.wa-messages-filters input:focus {
    outline: none;
    border-color: #555;
}

.wa-messages-filters select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.wa-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.wa-table {
    width: 100%;
    border-collapse: collapse;
}

.wa-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

.wa-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.wa-table tbody tr:hover {
    background: #f8fbff;
}

.wa-table tbody tr:last-child td {
    border-bottom: none;
}

.wa-msg-id {
    font-weight: 600;
    color: #666;
}

.wa-msg-number {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

.wa-msg-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-msg-date {
    font-size: 12px;
    color: #888;
}

.wa-msg-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* Status Badges */
.wa-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wa-status-pending {
    background: #fff3cd;
    color: #856404;
}

.wa-status-sending {
    background: #cce5ff;
    color: #004085;
}

.wa-status-sent {
    background: #d4edda;
    color: #155724;
}

.wa-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.wa-status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Pagination */
.wa-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.wa-pagination-info {
    font-size: 13px;
    color: #666;
}

/* Empty State */
.wa-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.wa-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.wa-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Button Icon */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-icon.btn-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-icon.btn-danger:hover {
    background: #fef2f2;
}

.btn-icon.btn-resend {
    color: #25D366;
    border-color: #25D366;
}

.btn-icon.btn-resend:hover {
    background: #f0faf0;
}

/* ============================================
   Janela de Edição de Mensagem (MDI)
   ============================================ */

.wa-edit-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wa-edit-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: #999;
}

.wa-edit-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wa-edit-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.wa-edit-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-edit-back:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wa-edit-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-edit-phone {
    font-size: 13px;
    color: #888;
    font-family: 'Consolas', 'Monaco', monospace;
}

.wa-edit-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px 24px;
    overflow: auto;
}

.wa-edit-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wa-edit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wa-edit-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.wa-edit-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.wa-edit-card-header i {
    color: #555;
}

.wa-edit-card-body {
    padding: 18px;
}

.wa-edit-card-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
    background: #fafafa;
    transition: all 0.15s ease;
    min-height: 160px;
    font-family: inherit;
}

.wa-edit-card-body textarea:focus {
    outline: none;
    border-color: #25D366;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wa-edit-char-counter {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #999;
}

/* Status Radio Buttons */
.wa-edit-status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wa-edit-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafafa;
    flex: 1;
    min-width: 110px;
}

.wa-edit-radio:hover {
    border-color: #ddd;
    background: #f5f5f5;
}

.wa-edit-radio.active {
    border-color: #555;
    background: #f0f8ff;
}

.wa-edit-radio input {
    display: none;
}

.wa-edit-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.wa-edit-radio.active .wa-edit-radio-dot {
    border-color: #555;
    background: #555;
}

.wa-edit-radio-dot.pending { border-color: #f0ad4e; }
.wa-edit-radio.active .wa-edit-radio-dot.pending { background: #f0ad4e; border-color: #f0ad4e; }

.wa-edit-radio-dot.sending { border-color: #555; }
.wa-edit-radio.active .wa-edit-radio-dot.sending { background: #555; border-color: #555; }

.wa-edit-radio-dot.sent { border-color: #28a745; }
.wa-edit-radio.active .wa-edit-radio-dot.sent { background: #28a745; border-color: #28a745; }

.wa-edit-radio-dot.failed { border-color: #dc3545; }
.wa-edit-radio.active .wa-edit-radio-dot.failed { background: #dc3545; border-color: #dc3545; }

.wa-edit-radio-dot.cancelled { border-color: #6c757d; }
.wa-edit-radio.active .wa-edit-radio-dot.cancelled { background: #6c757d; border-color: #6c757d; }

.wa-edit-radio-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* Error card */
.wa-edit-card-error {
    border-color: #f8d7da;
    background: #fff5f5;
}

.wa-edit-card-error .wa-edit-card-header {
    color: #721c24;
    background: #f8d7da;
    border-bottom-color: #f5c6cb;
}

.wa-edit-card-error .wa-edit-card-header i {
    color: #dc3545;
}

.wa-edit-error-text {
    margin: 0;
    color: #721c24;
    font-size: 13px;
    line-height: 1.5;
}

/* Info rows */
.wa-edit-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.wa-edit-info-row:last-child {
    border-bottom: none;
}

.wa-edit-info-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.wa-edit-info-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.wa-edit-info-mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #666;
}

/* Attachments */
.wa-edit-no-attachments {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    color: #ccc;
    text-align: center;
}

.wa-edit-no-attachments i {
    font-size: 32px;
    margin-bottom: 8px;
}

.wa-edit-no-attachments p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.wa-edit-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-edit-attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.wa-edit-attachment-item:hover {
    background: #f0f0f0;
}

.wa-edit-attachment-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 8px;
    color: #444;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-edit-attachment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wa-edit-attachment-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-edit-attachment-mime {
    font-size: 11px;
    color: #999;
}

.wa-edit-attachment-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.wa-edit-attach-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.15s ease;
}

.wa-edit-attach-btn:hover {
    background: #f0f8ff;
    border-color: #555;
    color: #555;
}

.wa-edit-attach-btn-danger:hover {
    background: #fef2f2;
    border-color: #e74c3c;
    color: #e74c3c;
}

.wa-edit-attach-add {
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: all 0.15s ease;
}

.wa-edit-attach-add:hover {
    border-color: #25D366;
    color: #25D366;
    background: #f0faf0;
}

/* Footer */
.wa-edit-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
    justify-content: flex-end;
}

.wa-edit-btn-cancel,
.wa-edit-btn-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-edit-btn-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.wa-edit-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wa-edit-btn-save {
    background: #25D366;
    border: 1px solid #20b858;
    color: #fff;
}

.wa-edit-btn-save:hover {
    background: #20b858;
}

.wa-edit-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
    .wa-edit-body {
        grid-template-columns: 1fr;
    }
    .wa-edit-sidebar {
        order: -1;
    }
}

/* ============================================
   Modal de Edição (legado - mantido para referência)
   ============================================ */

.wa-edit-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: wa-modal-in 0.2s ease;
}

@keyframes wa-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.wa-edit-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-edit-modal-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.wa-edit-msg-id {
    font-size: 12px;
    color: #999;
    font-family: 'Consolas', 'Monaco', monospace;
}

.wa-edit-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: all 0.15s ease;
}

.wa-edit-modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

.wa-edit-modal-body {
    padding: 24px;
}

.wa-edit-field {
    margin-bottom: 20px;
}

.wa-edit-field:last-child {
    margin-bottom: 0;
}

.wa-edit-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-edit-field label i {
    color: #555;
}

/* Textarea */
.wa-edit-textarea-wrapper {
    position: relative;
}

.wa-edit-textarea-wrapper textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
    background: #fafafa;
    transition: all 0.15s ease;
    min-height: 160px;
}

.wa-edit-textarea-wrapper textarea:focus {
    outline: none;
    border-color: #25D366;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wa-edit-char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 11px;
    color: #999;
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Status Radio Buttons */
.wa-edit-status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wa-edit-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafafa;
    flex: 1;
    min-width: 120px;
}

.wa-edit-radio:hover {
    border-color: #ddd;
    background: #f5f5f5;
}

.wa-edit-radio.active {
    border-color: #555;
    background: #f0f8ff;
}

.wa-edit-radio input {
    display: none;
}

.wa-edit-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.wa-edit-radio.active .wa-edit-radio-dot {
    border-color: #555;
    background: #555;
}

.wa-edit-radio-dot.pending { border-color: #f0ad4e; }
.wa-edit-radio.active .wa-edit-radio-dot.pending { background: #f0ad4e; border-color: #f0ad4e; }

.wa-edit-radio-dot.sending { border-color: #555; }
.wa-edit-radio.active .wa-edit-radio-dot.sending { background: #555; border-color: #555; }

.wa-edit-radio-dot.sent { border-color: #28a745; }
.wa-edit-radio.active .wa-edit-radio-dot.sent { background: #28a745; border-color: #28a745; }

.wa-edit-radio-dot.failed { border-color: #dc3545; }
.wa-edit-radio.active .wa-edit-radio-dot.failed { background: #dc3545; border-color: #dc3545; }

.wa-edit-radio-dot.cancelled { border-color: #6c757d; }
.wa-edit-radio.active .wa-edit-radio-dot.cancelled { background: #6c757d; border-color: #6c757d; }

.wa-edit-radio-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* Footer */
.wa-edit-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.wa-edit-btn-cancel,
.wa-edit-btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-edit-btn-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.wa-edit-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.wa-edit-btn-save {
    background: #25D366;
    border: 1px solid #20b858;
    color: #fff;
}

.wa-edit-btn-save:hover {
    background: #20b858;
}

.wa-edit-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive - collapse sidebar on smaller screens */
@media (max-width: 900px) {
    .wa-sidebar {
        width: 160px;
    }
    .wa-status-grid {
        grid-template-columns: 1fr;
    }
    .wa-messages-filters {
        flex-direction: column;
    }
    .wa-messages-filters input,
    .wa-messages-filters select {
        width: 100%;
    }
}
