/**
 * CalMU Data Entry Admin Styles
 * 
 * Estilos para páginas administrativas
 */

/* Estilos para controles de paginação */
.calmu-pagination-controls {
    background: #f8f9fa;
    border-radius: 8px;
    user-select: none;
}

.calmu-page-btn:hover:not(:disabled) {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.calmu-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.calmu-page-num:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.calmu-page-numbers {
    align-items: center;
}

/* Responsividade para paginação */
@media (max-width: 768px) {
    .calmu-pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .calmu-pagination-info {
        text-align: center;
    }
}

/* Estilos do Quill.js em modo fullscreen */
#calmu-fullscreen-container .ql-toolbar {
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px;
    position: relative;
    z-index: 10;
}

/* Z-index para toolbar do Quill no modal */
.calmu-content-modal .ql-toolbar {
    position: relative;
    z-index: 10;
}

/* Z-index para elementos do modal */
.calmu-content-modal-header,
.calmu-content-modal-footer {
    position: relative;
    z-index: 20;
}

/* Z-index para editor no fullscreen */
#calmu-fullscreen-container .ql-editor {
    position: relative;
}

/* Z-index para header/footer do fullscreen */
.calmu-fullscreen-header,
.calmu-fullscreen-footer {
    position: relative;
    z-index: 20;
}


#calmu-fullscreen-container .ql-container {
    font-size: 16px;
    height: calc(100% - 55px);
    border: none;
}

#calmu-fullscreen-container .ql-editor {
    padding: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#calmu-fullscreen-container .ql-editor p {
    margin-bottom: 1em;
}

#calmu-fullscreen-container .ql-snow .ql-stroke {
    stroke: #444;
}

#calmu-fullscreen-container .ql-snow .ql-fill,
#calmu-fullscreen-container .ql-snow .ql-stroke.ql-fill {
    fill: #444;
}

#calmu-fullscreen-container .ql-toolbar button:hover .ql-stroke {
    stroke: #0073aa;
}

#calmu-fullscreen-container .ql-toolbar button:hover .ql-fill,
#calmu-fullscreen-container .ql-toolbar button:hover .ql-stroke.ql-fill {
    fill: #0073aa;
}

/* Ajustes para o header do fullscreen */
.calmu-fullscreen-header h3 {
    font-weight: 500;
    font-size: 18px;
}

.calmu-fullscreen-close:hover {
    color: #333;
}

/* Ajustes para os botões do footer */
.calmu-fullscreen-save:hover {
    background: #005a87 !important;
}

.calmu-fullscreen-cancel:hover {
    background: #555 !important;
}

/* Estilos para imagens no Quill */
.ql-editor img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
    position: relative;
}

.ql-editor img:hover {
    opacity: 0.9;
}

.ql-editor img[data-resize-handler] {
    position: relative;
}

/* Container do editor Quill */
.ql-container {
    position: relative;
}

/* Ajuste para o resize funcionar corretamente */
.ql-editor {
    position: relative;
    overflow: auto !important;
    min-height: 300px;
}

/* Garantir que o modal contenha o conteúdo */
.calmu-content-modal-body {
    overflow: auto !important;
    max-height: 500px;
    position: relative;
}

/* Container do modal */
.calmu-content-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

/* Z-index para os handles ficarem acima */
.ql-editor div[style*="border: 1px solid"] {
    z-index: 999 !important;
    position: absolute !important;
}

/* Limitar tamanho máximo das imagens */
.ql-editor img {
    max-width: 100% !important;
    height: auto;
}

/* Estilo durante o resize */
body.calmu-resizing {
    cursor: nwse-resize !important;
}

body.calmu-resizing * {
    cursor: inherit !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Overlay de resize */
.calmu-resize-overlay {
    pointer-events: none !important;
}

.calmu-resize-handle {
    pointer-events: auto !important;
}

/* ===== SWEETALERT2 CUSTOMIZAÇÕES LIMPAS =====
 * Todo o estilo dos SweetAlerts é gerenciado pelo CalMU_SweetAlert_Manager
 * Mantidos apenas os estilos específicos para modais do editor tabela
 */

/* Dashboard principal */
.calmu-admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.calmu-admin-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.calmu-admin-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.calmu-admin-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Status do editor */
.calmu-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.calmu-status.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.calmu-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Botões de acesso rápido */
.calmu-admin-card .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.calmu-admin-card .button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
}

.calmu-admin-card .button-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
}

/* Página de configurações */
.calmu-settings-section {
    background: white !important;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Garantir que dark mode não afete esta seção */
@media (prefers-color-scheme: dark) {
    .calmu-settings-section {
        background: white !important;
        color: #1d2327 !important;
    }
}

.calmu-settings-section h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

/* Checkboxes personalizados */
.calmu-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.calmu-checkbox-group label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calmu-checkbox-group label:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.calmu-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Selects personalizados */
.calmu-select-wrapper {
    position: relative;
    max-width: 300px;
}

.calmu-select-wrapper select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.calmu-select-wrapper select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Página de ajuda */
.calmu-help-content {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 30px;
    line-height: 1.6;
}

.calmu-help-content h2 {
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

.calmu-help-content h3 {
    color: #0073aa;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.calmu-help-content ol,
.calmu-help-content ul {
    margin-left: 20px;
}

.calmu-help-content li {
    margin-bottom: 10px;
}

.calmu-help-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.calmu-help-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Estilos para a documentação */
.calmu-help-content .code-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.calmu-help-content .code-example strong {
    color: #0073aa;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.calmu-help-content .code-example code {
    background: transparent;
    padding: 0;
    color: #e83e8c;
    font-weight: 600;
}

/* Seções de personalização */
.calmu-customization-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.calmu-customization-section h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Campos de cor */
.calmu-customization-section input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.calmu-customization-section input[type="color"]:hover {
    border-color: #0073aa;
}

/* Presets */
#calmu_preset {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

#calmu_preset:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Responsividade para documentação */
@media (max-width: 768px) {
    .calmu-help-content {
        padding: 20px;
    }
    
    .calmu-help-content h2 {
        font-size: 20px;
    }
    
    .calmu-help-content h3 {
        font-size: 18px;
    }
    
    .calmu-help-content .code-example {
        padding: 15px;
        font-size: 12px;
    }
    
    .calmu-customization-section {
        padding: 15px;
    }
}

/* Notificações */
.calmu-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
    color: #0c5460;
}

.calmu-notice.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.calmu-notice.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.calmu-notice.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Ícones */
.calmu-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.calmu-icon.edit {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230073aa"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>') no-repeat center;
    background-size: contain;
}

.calmu-icon.settings {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230073aa"><path d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"/></svg>') no-repeat center;
    background-size: contain;
}

/* Responsividade */
@media (max-width: 768px) {
    .calmu-admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .calmu-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .calmu-help-content {
        padding: 20px;
    }
    
    .calmu-help-content pre {
        font-size: 12px;
        padding: 10px;
    }
}

/* Melhorias de acessibilidade */
.calmu-admin-card:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.calmu-checkbox-group label:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animações */
@keyframes calmu-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calmu-admin-card {
    animation: calmu-fade-in 0.3s ease;
}

/* Suporte para modo escuro do WordPress */
@media (prefers-color-scheme: dark) {
    .calmu-admin-card,
    .calmu-help-content {
        background: #1e1e1e;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    /* Manter fundo claro para página de configurações do SweetAlert */
    .calmu-sweetalert-settings .calmu-settings-section {
        background: #ffffff !important;
        color: #1d2327 !important;
    }
    
    .calmu-sweetalert-settings .calmu-settings-section h2,
    .calmu-sweetalert-settings .calmu-settings-section h3,
    .calmu-sweetalert-settings .calmu-setting-group label {
        color: #1d2327;
    }
    
    .calmu-admin-card h2,
    .calmu-help-content h2 {
        color: #f0f0f1;
    }
    
    .calmu-help-content h3 {
        color: #72aee6;
    }
    
    .calmu-help-content pre {
        background: #2c2c2c;
        border-color: #3c434a;
    }
    
    .calmu-help-content code {
        background: #2c2c2c;
    }
} 

/* Rolagem horizontal para tabelas do Gerenciador de Posts */
.calmu-post-manager-table-scroll {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 24px;
}
.calmu-post-manager-table {
    min-width: 900px;
    width: 100%;
    border-collapse: collapse;
}
.calmu-post-manager-table th,
.calmu-post-manager-table td {
    vertical-align: middle;
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

.calmu-post-manager-table th.calmu-col-id,
.calmu-post-manager-table td.calmu-col-id {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
    box-shadow: 2px 0 2px -1px #e0e0e0;
}
.calmu-post-manager-table th.calmu-col-actions,
.calmu-post-manager-table td.calmu-col-actions {
    position: sticky;
    left: 60px;
    z-index: 3;
    background: #fff;
    box-shadow: 2px 0 2px -1px #e0e0e0;
}
.calmu-post-manager-table th.calmu-col-title,
.calmu-post-manager-table td.calmu-col-title {
    position: sticky;
    left: 126px;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 2px -1px #e0e0e0;
    min-width: 90px;
    max-width: 320px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    padding-left: 8px !important;
}

.calmu-post-manager-table td.calmu-col-title {
    padding-left: 30px !important;
}

td[data-type="text"] {
    transition: min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

td[data-type="text"].calmu-text-editing {
    min-width: 250px !important;
    max-width: 250px !important;
}

td[data-type="text"] .calmu-inline-edit-input {
    transition: opacity 0.2s ease-in-out;
}

td[data-type="select"].calmu-select-editing {
    min-width: 250px !important;
    max-width: 250px !important;
    transition: min-width 0.2s, max-width 0.2s;
}

@media (max-width: 900px) {
    .calmu-post-manager-table {
        min-width: 600px;
    }
} 

.calmu-post-manager-edit {
    display: inline-flex;
    align-items: center;
    background: #2336d6;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 16px 6px 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(35,54,214,0.07);
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    margin-right: 8px;
    gap: 6px;
}
.calmu-post-manager-edit:hover, .calmu-post-manager-edit:focus {
    background: #1a2599;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(35,54,214,0.13);
    text-decoration: none !important;
}
.calmu-post-manager-edit .calmu-edit-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    fill: #fff;
} 

.calmu-post-manager-table-scroll.calmu-table-scrolled .calmu-post-manager-table th.calmu-col-id,
.calmu-post-manager-table-scroll.calmu-table-scrolled .calmu-post-manager-table td.calmu-col-id {
    font-size: 11px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    padding-left: 4px;
    padding-right: 4px;
}
.calmu-post-manager-table-scroll.calmu-table-scrolled .calmu-post-manager-table th.calmu-col-actions,
.calmu-post-manager-table-scroll.calmu-table-scrolled .calmu-post-manager-table td.calmu-col-actions {
    font-size: 11px;
    min-width: 80px;
    max-width: 90px;
    padding: 2px 2px;
}
.calmu-post-manager-edit,
.calmu-post-manager-delete {
    font-size: 11px !important;
    padding: 3px 8px 3px 6px !important;
    border-radius: 4px !important;
    min-width: 0 !important;
    margin-right: 2px !important;
}
.calmu-post-manager-edit .calmu-edit-icon {
    width: 13px;
    height: 13px;
    margin-right: 2px;
}
.calmu-post-manager-table th.calmu-col-title,
.calmu-post-manager-table td.calmu-col-title {
    font-size: 12px;
    min-width: 90px;
    max-width: 120px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    padding: 2px 6px;
} 

.calmu-col-actions {
    text-align: center;
    vertical-align: middle;
}
.calmu-post-manager-edit, .calmu-post-manager-delete {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    margin: 0 2px !important;
    min-width: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.calmu-post-manager-edit .calmu-edit-icon {
    width: 18px;
    height: 18px;
    color: #2336d6;
    fill: #2336d6;
    margin: 0;
    transition: color 0.15s;
}
.calmu-post-manager-edit:hover .calmu-edit-icon {
    color: #1a2599;
    fill: #1a2599;
}
.calmu-post-manager-delete .calmu-delete-icon {
    width: 18px;
    height: 18px;
    color: #e53935;
    fill: #e53935;
    margin: 0;
    transition: color 0.15s;
}
.calmu-post-manager-delete:hover .calmu-delete-icon {
    color: #b71c1c;
    fill: #b71c1c;
}
.calmu-col-title {
    padding-left: 8px !important;
} 

.calmu-col-title.calmu-title-editing {
    min-width: 350px !important;
    max-width: 350px !important;
    transition: min-width 0.2s, max-width 0.2s;
} 

.calmu-post-manager-controls {
    display: flex;
    align-items: center;
    width: 400px;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 18px;
}
@media (max-width: 600px) {
    .calmu-post-manager-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
} 

.calmu-post-manager-search {
    border-radius: 8px !important;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    transition: border 0.15s;
}
.calmu-post-manager-search:focus {
    border-color: #2336d6;
}
.calmu-post-manager-add {
    border-radius: 8px !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
} 

.calmu-btn-add {
    background: #faffb8 !important;
    color: #23282d !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(35,54,214,0.04);
    font-weight: 500;
    transition: background 0.18s, box-shadow 0.18s;
    outline: none !important;
}
.calmu-btn-add:hover, .calmu-btn-add:focus {
    background: #fff685 !important;
    color: #23282d !important;
    box-shadow: 0 4px 16px rgba(35,54,214,0.10);
} 

.calmu-switcher {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    vertical-align: middle;
}
.calmu-switcher input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}
.calmu-switcher-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #e0e0e0;
    border-radius: 22px;
    transition: background 0.2s;
}
.calmu-switcher-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.calmu-switcher input:checked + .calmu-switcher-slider {
    background: #2336d6;
}
.calmu-switcher input:checked + .calmu-switcher-slider:before {
    transform: translateX(16px);
} 

.calmu-editable-text {
    cursor: pointer;
    border-bottom: 1px dashed #bbb;
    transition: background 0.15s;
}
.calmu-editable-text:hover, .calmu-editable-text:focus {
    background: #f3f4f6;
    border-radius: 4px;
}
.calmu-edit-icon {
    color: #2336d6;
    font-size: 15px;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.15s;
    display: none;
}
.calmu-editable-text:hover + .calmu-edit-icon,
.calmu-edit-icon:focus {
    display: inline;
} 

.calmu-editable-title {
    cursor: pointer;
    border-bottom: 1px dashed #bbb;
    transition: background 0.15s;
}
.calmu-editable-title:hover, .calmu-editable-title:focus {
    background: #f3f4f6;
    border-radius: 4px;
}

/* Campos select em edição */
.calmu-select-editing select {
    width: 100% !important;
    min-width: 200px !important;
}

/* Campos posts em edição */
.calmu-posts-editing select {
    width: 100% !important;
    min-width: 250px !important;
} 

/* Tooltips para colunas da tabela */
.calmu-column-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    line-height: 1.4;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 250px;
    text-align: left;
}

.calmu-column-tooltip strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    color: #fff;
}

.calmu-column-tooltip.show {
    opacity: 1;
}

.calmu-column-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #333;
}

.calmu-column-tooltip.tooltip-below::before {
    top: auto;
    bottom: -4px;
    border-bottom: none;
    border-top: 4px solid #333;
}

/* Indicador visual quando o header não está visível */
.calmu-post-manager-table td.header-hidden {
    position: relative;
}

.calmu-post-manager-table td.header-hidden::after {
    content: '?';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    font-weight: bold;
    opacity: 0.7;
    pointer-events: none;
}

/* Melhorar acessibilidade dos tooltips */
.calmu-column-tooltip[aria-hidden="true"] {
    display: none;
}

/* Suporte para modo escuro */
@media (prefers-color-scheme: dark) {
    .calmu-column-tooltip {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .calmu-column-tooltip::before {
        border-bottom-color: #2d3748;
    }
    
    .calmu-column-tooltip.tooltip-below::before {
        border-top-color: #2d3748;
    }
    
    .calmu-post-manager-table td.header-hidden::after {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Destaque para novo post criado */
.calmu-post-manager-table tr.calmu-new-post {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
    border-left: 4px solid #2336d6 !important;
    animation: calmu-new-post-highlight 2s ease-in-out;
}

.calmu-post-manager-table tr.calmu-new-post td {
    background: transparent !important;
    border-color: #b3d9ff !important;
}

.calmu-post-manager-table tr.calmu-new-post:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #d9ecff 100%) !important;
}

@keyframes calmu-new-post-highlight {
    0% {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
        border-left-color: #ffc107 !important;
    }
    50% {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
        border-left-color: #ffc107 !important;
    }
    100% {
        background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
        border-left-color: #2336d6 !important;
    }
}

/* Indicador visual para novo post */
.calmu-new-post-indicator {
    display: inline-block;
    background: #2336d6;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    animation: calmu-new-post-pulse 2s ease-in-out;
}

@keyframes calmu-new-post-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

 

/* Coluna de conteúdo para posts */
.calmu-col-content {
    min-width: 200px;
    max-width: 300px;
    position: relative;
}

.calmu-content-preview {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 90px);
    margin-right: 10px;
    margin-bottom: 0;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.calmu-edit-content-btn {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.calmu-edit-content-btn:hover {
    background: #005a87;
}

.calmu-edit-content-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.calmu-edit-content-icon {
    color: white;
}

/* Container para conteúdo e botão inline */
.calmu-post-manager-table td:has(.calmu-content-preview) {
    white-space: nowrap;
}

/* Ajuste para telas menores */
@media (max-width: 1200px) {
    .calmu-content-preview {
        width: calc(100% - 50px);
        display: block;
        margin-bottom: 5px;
    }
    
    .calmu-edit-content-btn {
        display: block;
        width: fit-content;
    }
}

/* Ocultar seção antiga de tema do SweetAlert */
tr:has(#sweet_alert_theme),
.form-table tr:has(label[for="sweet_alert_theme"]) {
    display: none !important;
}

/* ===== SWEETALERT2 EDITOR MODAL ===== */
.calmu-editor-modal-popup {
    max-width: 90vw !important;
}

.calmu-editor-modal-content {
    padding: 0 !important;
}

.calmu-editor-modal-content #calmu-content-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.calmu-editor-fullscreen-btn:hover {
    background: #f0f0f0 !important;
    border-radius: 4px;
}

/* Ajustar altura do editor Quill dentro do SweetAlert2 */
.swal2-popup .ql-container {
    min-height: 350px;
    max-height: 60vh;
    overflow-y: auto;
}

/* ===== EDIÇÃO INLINE ===== */
.calmu-col-title {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calmu-col-title:hover:not(.calmu-title-editing) {
    background-color: #f0f8ff;
}

.calmu-title-editing {
    background-color: #fff;
    box-shadow: 0 0 0 2px #0073aa;
}

.calmu-inline-edit-input {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EDITOR DE IMAGEM ===== */
.calmu-image-editor-modal .swal2-popup {
    padding: 2em;
}

.calmu-image-edit-container button {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
}

.calmu-image-edit-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.calmu-image-edit-container .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}

.calmu-image-edit-container .calmu-current-image img {
    transition: transform 0.2s ease;
}

.calmu-image-edit-container .calmu-current-image img:hover {
    transform: scale(1.05);
}

/* Garantir que dashicons sejam carregados */
.calmu-image-editor-modal .dashicons:before {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: none;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Forçar largura correta do input URL no editor de imagem */
.calmu-image-editor-modal input#calmu-image-url {
    width: auto !important;
    min-width: 300px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Container do input URL */
.calmu-image-edit-container .calmu-url-input > div {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* Sobrescrever estilos do Elementor especificamente para o editor de imagem */
body .elementor .calmu-image-editor-modal .swal2-popup input,
body .calmu-image-editor-modal .swal2-popup input,
.calmu-image-editor-modal .swal2-popup input[type="url"] {
    width: auto !important;
    max-width: 100% !important;
}

/* ===== CONFIGURAÇÕES DO SWEETALERT ===== */
.calmu-sweetalert-settings {
    max-width: 1400px;
    margin: 20px auto;
}

.calmu-sweetalert-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    margin-bottom: 30px;
    color: #1d2327;
}

.calmu-settings-container {
    display: flex;
    gap: 30px;
}

.calmu-settings-main {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.calmu-settings-sidebar {
    width: 350px;
}

.calmu-settings-section {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
    padding: 30px;
}

.calmu-settings-section:last-child {
    border-bottom: none;
}

.calmu-settings-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #1d2327;
}

.calmu-settings-section h3 {
    font-size: 16px;
    margin: 25px 0 15px 0;
    color: #50575e;
    font-weight: 600;
}

.calmu-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.calmu-setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calmu-setting-group.full-width {
    grid-column: 1 / -1;
}

.calmu-setting-group label {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
}

.calmu-setting-group input[type="text"],
.calmu-setting-group select {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calmu-setting-group input[type="text"]:focus,
.calmu-setting-group select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.calmu-setting-group small {
    font-size: 12px;
    color: #757575;
}

.calmu-color-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calmu-color-input input[type="color"] {
    width: 50px;
    height: 36px;
    padding: 2px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    cursor: pointer;
}

.calmu-color-input input[type="text"] {
    flex: 1;
}

.calmu-settings-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.calmu-settings-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 8px 16px;
}

/* Sidebar */
.calmu-preview-box,
.calmu-theme-presets {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.calmu-preview-box h3,
.calmu-theme-presets h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #1d2327;
}

.calmu-preview-box p {
    color: #50575e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.calmu-preview-box .button {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calmu-preset-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calmu-preset {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.calmu-preset:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.preset-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Responsivo */
@media (max-width: 1200px) {
    .calmu-settings-container {
        flex-direction: column;
    }
    
    .calmu-settings-sidebar {
        width: 100%;
    }
}

/* Modal de edição de conteúdo */
.calmu-content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calmu-content-modal.show {
    opacity: 1;
    visibility: visible;
}

.calmu-content-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calmu-content-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.calmu-content-modal-header h3 {
    margin: 0;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

.calmu-content-modal-close,
.calmu-content-modal-fullscreen {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-left: 8px;
}

.calmu-content-modal-close:hover,
.calmu-content-modal-fullscreen:hover {
    background: #f0f0f0;
    color: #333;
}

.calmu-content-modal-fullscreen {
    font-size: 20px;
}

.calmu-content-modal-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calmu-content-editor {
    flex: 1;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.calmu-content-editor:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Estilos para TinyMCE no modal */
.calmu-content-modal .mce-tinymce {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.calmu-content-modal .mce-tinymce:focus-within {
    border-color: #0073aa !important;
    box-shadow: 0 0 0 1px #0073aa !important;
}

.calmu-content-modal .mce-toolbar {
    border-bottom: 1px solid #e0e0e0 !important;
    background: #f9f9f9 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calmu-content-modal .mce-edit-area {
    background: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calmu-content-modal .mce-content-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Esconder o textarea original quando TinyMCE está ativo */
.calmu-content-modal .mce-tinymce:not([style*="display: none"]) ~ textarea#calmu-content-editor {
    display: none !important;
}

/* Garantir que o TinyMCE permaneça visível */
.calmu-content-modal .mce-tinymce,
.calmu-content-modal .mce-toolbar,
.calmu-content-modal .mce-edit-area,
.calmu-content-modal .mce-content-body {
    position: relative !important;
    z-index: 1000 !important;
}

/* Z-index alto para elementos do TinyMCE que aparecem sobre o modal */
.calmu-content-modal .mce-container,
.calmu-content-modal .mce-container-body,
.calmu-content-modal .mce-panel,
.calmu-content-modal .mce-menu,
.calmu-content-modal .mce-menu-item,
.calmu-content-modal .mce-dropdown,
.calmu-content-modal .mce-listbox,
.calmu-content-modal .mce-colorbutton,
.calmu-content-modal .mce-colorpicker,
.calmu-content-modal .mce-dialog,
.calmu-content-modal .mce-window,
.calmu-content-modal .mce-popover,
.calmu-content-modal .mce-tooltip {
    z-index: 9999 !important;
}

/* Z-index específico para o modal para garantir que não sobreponha os elementos do TinyMCE */
.calmu-content-modal {
    z-index: 1000 !important;
}

.calmu-content-modal-content {
    z-index: 1001 !important;
}

/* Estilos para TinyMCE em fullscreen */
.mce-tinymce.mce-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: white !important;
}

.mce-tinymce.mce-fullscreen .mce-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100000 !important;
}

.mce-tinymce.mce-fullscreen .mce-edit-area {
    height: calc(100% - 40px) !important;
}

/* Garantir que o fullscreen funcione corretamente */
body.mce-fullscreen {
    overflow: hidden !important;
}

/* Esconder modal quando editor está em fullscreen */
.mce-fullscreen ~ .calmu-content-modal {
    display: none !important;
}

/* TinyMCE naturalmente esconde o textarea quando inicializado */

.calmu-content-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.calmu-content-modal-footer button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calmu-content-modal-footer .calmu-btn-save {
    background: #0073aa;
    color: white;
    border: none;
}

/* ===== BOTÃO FLUTUANTE DE SALVAR ===== */
.calmu-floating-save {
    position: fixed !important;
    bottom: 30px !important;
    right: 200px !important;
    z-index: 9999999 !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 160px !important;
    justify-content: center !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ajustar posição quando o menu do WP está dobrado */
body.folded .calmu-floating-save {
    right: 50px !important;
}

.calmu-floating-save:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
}

.calmu-floating-save:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.calmu-floating-save.saving {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    cursor: wait;
    transform: scale(0.95);
}

.calmu-floating-save.saved {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scale(1.05);
    animation: calmu-save-success 0.6s ease;
}

@keyframes calmu-save-success {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.calmu-floating-save .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.calmu-floating-save-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Responsivo */
@media (max-width: 960px) {
    .calmu-floating-save {
        bottom: 20px !important;
        right: 30px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        min-width: 140px !important;
    }
    
    .calmu-floating-save .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/* Esconder quando não necessário */
.calmu-floating-save.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.calmu-content-modal-footer .calmu-btn-save:hover {
    background: #005a87;
}

.calmu-content-modal-footer .calmu-btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.calmu-content-modal-footer .calmu-btn-cancel:hover {
    background: #e0e0e0;
}

/* Loading state */
.calmu-content-modal.loading .calmu-content-modal-content {
    opacity: 0.7;
    pointer-events: none;
}

.calmu-content-modal.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: calmu-spin 1s linear infinite;
}

@keyframes calmu-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos básicos para fullscreen editor */
#calmu-fullscreen-container .calmu-fullscreen-editor-wrapper {
    position: relative;
}

/* Z-index para menus do TinyMCE em fullscreen */
.mce-menu,
.mce-inline-toolbar-grp,
.mce-tooltip,
.mce-window,
.mce-floatpanel {
    z-index: 9999999 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .calmu-content-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .calmu-content-modal-header,
    .calmu-content-modal-body,
    .calmu-content-modal-footer {
        padding: 15px;
    }
    
    .calmu-content-editor {
        min-height: 300px;
    }
    
    .calmu-col-content {
        min-width: 150px;
        max-width: 200px;
    }
    
    .calmu-content-preview {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

/* ===== CAMPOS REPEATER ===== */
.calmu-editable-repeater {
    display: block;
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
    position: relative;
}

.calmu-editable-repeater > div {
    max-width: 100% !important;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.calmu-editable-repeater > div > div {
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Colunas que contêm repeaters */
td[data-type="repeater"] {
    max-width: 300px !important;
    overflow: hidden;
    position: relative;
}

/* Quando campo repeater está em edição */
td[data-type="repeater"].calmu-repeater-editing {
    max-width: 400px !important;
    overflow: visible;
} 