/* site.css */
body {
    /*font-family: Arial, sans-serif;*/
}

main.container {
    width: 100%;
    max-width: 100%; /* Garante que não tenha limite de largura */
    margin: 0 auto;
    /*text-align: justify;*/
}

/* Ajuste do conteúdo principal ao colapsar o menu */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
    width: calc(100% - 250px); /* Ocupa o restante do espaço quando sidebar está expandida */
    /*text-align: justify;*/ /* Justifica o texto */
}

    .main-content.collapsed {
        margin-left: 60px;
        width: calc(100% -60px); /* Ocupa o restante do espaço quando sidebar está colapsada */
    }

label[data-status="2"] {
    color: blue;
}

/* Estilo para Botões de Alternância (Check Buttons) */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #007bff;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }


.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header {
    text-transform: uppercase;
    font-weight:bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding-left: 0;
        position: fixed;
        z-index: 1050; 
    }

        .sidebar.expanded {
            width: 250px; 
            background-color: rgba(0, 0, 0, 0.8); 
        }

            .sidebar.expanded .sidebar-group-title {
                display: block; 
            }

            .sidebar.expanded .sidebar-group-items {
                padding-left: 20px; 
            }

    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px); 
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-left: 0;
        width: 100%; /* Ocupa toda a largura disponível em telas menores */
        padding: 10px; /* Reduz o padding para telas menores */
    }
}

.input-validation-error {
    border: 2px solid red;
    background-color: #ffe6e6; /* Opcional: adicionar um fundo claro */
}

    .input-validation-error:focus {
        outline: none;
        border-color: darkred; /* Para melhorar o foco no campo inválido */
    }


a.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

#btnBatchEdit {
    margin: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    #btnBatchEdit:hover {
        background-color: #0056b3;
    }
.iframe-container {
    width: 100%;
    height: calc(100vh - 110px); /* Ocupa toda a altura da viewport */
    display: flex;
 
}

    .iframe-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        overflow: hidden; /* Remove qualquer overflow desnecessário */
    }
.full-screen-iframe {
    position: absolute;
    top: 70px;
    left: 250px;
    width: 100%;
   
    border: none;
}

.erro-campo {
    border: 2px solid red;
    background-color: #ffe5e5;
}

.erro-msg {
    color: red;
    font-size: 0.875rem;
    margin-top: 5px;
}

.tox-statusbar {
    display: none !important;
}
.box {
    border: 1px solid #ccc;
    padding: 1rem;
    background: #f9f9f9;
    min-height: 300px;
    max-height: 300px; /* altura igual ao TinyMCE */
    overflow-y: auto; /* scroll vertical se necessário */
}
.scrollable {
    max-height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.6); /* fundo branco translúcido */
    z-index: 9999; /* garantir que esteja acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-spinner {
    width: 50px;
    height: 50px;
}

