/* Estilo Geral da Tabela */
/*
#imprimir {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#imprimir td, #imprimir th {
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
    box-sizing: border-box;
    vertical-align: middle;
}

#imprimir tr:nth-child(even) {
    background-color: #f2f2f2;
}

#imprimir tr:hover {
    background-color: #ddd;
}

#imprimir th {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #0486aa;
    color: white;
    
}
*/

#imprimir {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#imprimir td, #imprimir th {
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
    box-sizing: border-box;
    vertical-align: middle;
}

#imprimir tr:nth-child(even) {
    background-color: #f2f2f2;
}

#imprimir tr:hover {
    background-color: #e6f7ff; /* tom leve azul para destaque */
}

#imprimir th {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #0486aa;
    color: white;
}

/* Botões dentro da tabela */
#imprimir .btn-success {
    background-color: #2ecc71;
    border: none;
    color: white;
}

#imprimir .btn-success:hover {
    background-color: #27ae60;
}

#imprimir .btn-primary {
    background-color: #2980b9;
    border: none;
    color: white;
}

#imprimir .btn-primary:hover {
    background-color: #2471a3;
}

#imprimir i.fa {
    margin-right: 5px;
}


/*Titulo - colocar cor*/
#titulo { 
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 22px;
    background-color: #708090;
    color: white;
    caption-side: top;
    margin-bottom: 20px;
}


/*tabelas*/

.table-alunos {
    width: 100%;
    overflow-x: auto;
}

.table-alunos thead th {
    background-color: #0486aa;
    color: white;
    text-align: center;
}

.table-alunos tbody td {
    padding: 8px;
    text-align: center;
}

.img-circle {
    border-radius: 50%;
    margin-right: 10px;
}

.container2 .foto-aluno {
    margin-right: 10px;
}


.container2 {
    position: relative;
    text-align: center;
    /*color: white;*/
    color: rgb(0, 0, 0);
}

.top-pos {
    position: absolute;
    top: -2px;
    left: -2px;
}

.center-pos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.indisponivel {
    padding: 10px 0;
}

.bloq {
    cursor: pointer;
    padding: 10px 0;
}

.foto {
    cursor: pointer;
}

.ui-icon.glyphicon {
    text-indent: initial;
}

.ui-dialog {
    z-index: 1000 !important;
}


/* Estilo do formulário */
.upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-form input[type="file"],
.upload-form input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.upload-form .btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-form .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.upload-form .btn-primary:hover {
    background-color: #0056b3;
}

.upload-form .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.upload-form .btn-danger:hover {
    background-color: #c82333;
}


.btn {
    border-radius: 10px;
}

.btn-editar-arquivo {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
}

.btn-editar-arquivo:hover {
    background-color: #218838;
}

.btn-disabled {
    pointer-events: none;
    background-color: #ccc !important;
    border-color: #bbb !important;
    color: #666 !important;
    cursor: not-allowed;
}
 

.btn-secondary {
    background-color: #007bff;
    color: white;
}    

/* Define um tamanho fixo para células de alunos */
#tbl_avals th.aluno, #tbl_avals td.aluno {
    width: 100px;
    max-width: 100px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

/* Ajusta as células normais */
#tbl_avals td {
    position: relative;
    min-width: 180px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    padding-bottom: 45px; /* Espaço extra para o campo de observação */
}

/* Ajuste para alinhar corretamente a primeira coluna */
#tbl_avals td:first-child {
    vertical-align: middle;
}

/* Estiliza o botão de observação */
.btn-observacao {
    position: relative;
    cursor: pointer;
    color: #007bff;
    font-size: 1.2em;
    margin-left: 5px;
    vertical-align: middle;
}

.btn-observacao.active {
    color: #0056b3;
    font-weight: bold;
} 

/* Ajusta a área de observação abaixo do campo de nota */
.observacao-wrapper {
    display: none;
    margin-top: 5px; /* Espaço entre o campo nota e a observação */
    position: absolute;
    bottom: 5px; /* Alinha no final da célula */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 5px;
    z-index: 1;/* Impede sobreposição indevida */
    box-sizing: border-box;
}

/* Ajusta o input de nota e observação */
.input_nota, .input-observacao {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    font-size: 0.9em;
}

.input_nota {
    margin-bottom: 5px;
}


/* Sombra para melhor visualização */
#imprimir tr td, #imprimir tr th {
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1);
}

/* Botão para abrir/fechar observações */
#abrir_observacoes {
    /*background-color: #007bff;*/
    background-color: #666;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

#abrir_observacoes:hover {
    background-color: #0056b3;
}

.mensagem-conteudo {
    animation: fadeIn 0.3s ease-in-out;
}


#toast-container {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
    width: auto !important;
    max-width: 80%;
    text-align: center;
}
 
/* RETORNO PARA MENSAGEM */





#modalFeedback {
    /*background-color: rgba(4, 134, 170, 1.000); /* Fundo Azul */
    padding: 20px 30px;
    border-radius: 8px;
    /*color: white;*/
    color: rgb(5, 5, 5);
    font-size: 16px;
    z-index: 10000; /* Garantir que fique acima de outros elementos */
    text-align: center;
    max-width: 90%;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
    word-wrap: break-word;
    opacity: 1 !important;
    visibility: visible !important;
}


#modalFeedback .modal-dialog {
    width: 90%;
    max-width: 400px;
    margin: 10px auto;
}

#modalFeedback .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    text-align: center;
}



#infoAluno {
    padding: 5px;
    background-color: #f5f5f5; /* Cor suave */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

#infoAluno .row div {
    padding: 2px 5px;
    white-space: nowrap; /* Evitar quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis;
}

#infoAluno strong {
    color: #555;
}

#infoAluno span {
    color: #000;
}

#btnNovaOcorrencia {
    height: 100%;
    min-height: 40px; /* Garantir altura uniforme */
    white-space: nowrap;
}



#modalFeedback .modal-body p {
    color: #333 !important; /* Cor escura para o texto ficar visível */
    font-size: 16px; /* Aumenta o tamanho da fonte */
    font-weight: bold; /* Deixa o texto mais destacado */
}


/* DataTable*/

.dataTables_filter {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
}

.dataTables_filter input {
    width: 100%;
    max-width: 200px; /* Ajuste conforme necessário */
}



/***********Lançamento de Ocorrencias*****************/
/*Botao checkbox*/
/* Ocultar o checkbox padrão */
.ciente {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease-in-out;
}

/* Criando a "bolinha" dentro do switch */
.ciente::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
}

/* Estilo quando o checkbox estiver marcado */
.ciente:checked {
    background-color: #28a745; /* Verde quando ativo */
}

/* Mover a bolinha para a direita quando marcado */
.ciente:checked::before {
    left: 26px;
}

/* Remover contorno preto ao focar */
.ciente:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); /* Opcional: adiciona um brilho sutil ao focar */
}




 /* Estilização do modal Ocorrencias*/

 .modal-content {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    /*background: #007bff;*/

    background: #708090; 
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 15px;
    text-align: center;
}

.modal-body {
    padding: 20px;
    background: #f8f9fa;
}

.form-group label {
    font-weight: bold;
}

.form-control {
    border-radius: 5px; 
    border: 1px solid #ced4da;
}

.btn-primary {
    background: #0486aa;
    border: none;
    width: 100%;
    font-size: 16px;
}

.btn-primary:hover { 
    background: #0486aa;
}

/* Estilização do modal Ocorrencias*/
/* Estilização do botão de fechar do modal */
.modal-header .close {
    font-size: 22px;
    color: #dc3545; /* Vermelho */
    background-color: white; /* Fundo branco para destacar */
    border: 2px solid #dc3545; /* Borda vermelha */
    border-radius: 50%; /* Botão arredondado */
    width: 35px;
    height: 35px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Efeito hover para melhorar a interação */
.modal-header .close:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Remove a sombra azul ao clicar */
.modal-header .close:focus {
    outline: none;
    box-shadow: 0px 0px 10px rgba(220, 53, 69, 0.5);
}



/* BOTAO COLAR */
.input-group .btn-paste {
    position: absolute;
    right: 5px;
    top: 30%;
    transform: translateY(-50%);
    background-color: #ddd;
    border: none;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
}
 

.paste-group {
    display: flex;
}

.paste-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.paste-group .btn-paste {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}






/* Efeito Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}




@media (max-width: 768px) {
    .responsive-table { 
        width: 100%;
        overflow-x: auto;
        display: block;
    }  
 
    #tbl_avals td {
        min-width: 150px; /* Reduz o tamanho mínimo em telas pequenas */
        position: relative;
        text-align: center;
        vertical-align: middle;
        white-space: normal;
        padding-bottom: 45px; /* Espaço extra para o campo de observação */
    
    }

    .observacao-wrapper {
        width: 100%; /* Garante alinhamento correto */
        display: none;
        margin-top: 5px; /* Espaço entre o campo nota e a observação */
        position: absolute;
        bottom: 5px; /* Alinha no final da célula */
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        padding: 5px;
        z-index: 1;/* Impede sobreposição indevida */
        box-sizing: border-box;    
    }


    #mensagem {
        display: none; /* Oculto por padrão */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /*background-color: rgba(255, 255, 255, 0.9); /* Fundo semi-transparente branco */
        background-color: rgba(4, 134, 170, 1.000); /* Fundo Azul */            
        padding: 15px;
        border-radius: 6px;
        color: white;
        font-size: 15px;
        z-index: 1000; /* Sobrepõe outros elementos */
        text-align: center; 
        max-width: 80%;
    }
    

    /*Data table  */
    table.dataTable td, table.dataTable th {
        white-space: nowrap; /* Evita que os textos quebrem para novas linhas */
        font-size: 12px; /* Diminui a fonte para melhor encaixe */
        padding: 5px; /* Reduz o espaço interno das células */
    }

    .dataTables_wrapper {
        overflow-x: auto; /* Ativa scroll horizontal se necessário */
    }

    table.dataTable {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    #modalFeedback {
        font-size: 14px;
        padding: 15px 20px;
    }

    .modal-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-end !important;
        justify-content: flex-end;
        padding-top: 20px;
    }

    .modal-footer .btn {
        width: 100%;
        margin-top: 10px;
    }


    #modalFeedback .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }

    #modalFeedback .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }

    #modalFeedback .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    #modalFeedback .modal-footer .btn {
        width: 100%;
        margin-top: 10px;    
    }
}

 

/* ===== Modal Dúvidas: cabeçalho e conteúdo visual ===== */
#modalDuvidas .modal-header{
  background: linear-gradient(90deg,#2563eb,#06b6d4);
  color:#fff;
  border-bottom:0;
}
#modalDuvidas .modal-title{
  display:flex; align-items:center; gap:.6rem; font-weight:800;
}
#modalDuvidas .modal-title .badge{
  background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.25);
}

/* Blocos de explicação */
#modalDuvidas .help-section{
  background:#fff; border:1px solid #eaecef; border-radius:12px;
  padding:14px 16px; box-shadow:0 2px 8px rgba(0,0,0,.05);
  margin-bottom:12px;
}
#modalDuvidas .help-section h6{
  margin:0 0 8px; font-weight:800; color:#111;
}

/* Passo a passo com ícone numérico */
#modalDuvidas .help-steps{ list-style:none; padding:0; margin:0; }
#modalDuvidas .help-steps li{
  display:flex; gap:.6rem; align-items:flex-start; margin:8px 0;
}
#modalDuvidas .help-steps .step{
  width:22px; height:22px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:#111; color:#fff; font-size:.8rem; font-weight:800; flex:0 0 22px;
}

/* Legenda com chips */
#modalDuvidas .legend{ display:flex; flex-wrap:wrap; gap:6px; }
#modalDuvidas .chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:6px 10px; border-radius:9999px; font-size:.85rem;
  border:1px solid #e5e7eb; background:#f8fafc; color:#111;
}

/* Cores dos estados (coerentes com seus cards) */
.chip-wait{ border-left:6px solid #f59e0b; }
.chip-done{ border-left:6px solid #10b981; }
.chip-other{ border-left:6px solid #3b82f6; }
.chip-final{ border-left:6px solid #059669; }
.chip-all{ border-left:6px solid #8b5cf6; }

/* Exemplo visual do documento + assinar */
#modalDuvidas .doc-example{
  display:flex; flex-direction:column; gap:8px; align-items:center;
  padding:10px; background:#f8fafc; border:1px dashed #e5e7eb; border-radius:10px;
}
#modalDuvidas .doc-example .doc-btn{
  min-width:280px; text-align:center;
}
#modalDuvidas .doc-example small{ color:#444; }

/* Observações de destaque */
#modalDuvidas .callout{
  background:#fff7ed; border:1px solid #fed7aa;
  color:#7c2d12; border-radius:10px; padding:10px 12px; font-weight:600;
}

/* Mobile: empilhar melhor */
@media (max-width:576px){
  #modalDuvidas .legend{ gap:8px; }
  #btnDuvidas.btn-duvidas{ width:100%; justify-content:center; }
}


 