@charset "utf-8";

body {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    padding: 0%;
    font-weight: normal;    
}

header {        
    height: 130px;            
}

footer {
    position: fixed;
    bottom:0;
    width:100%;    
    margin: 0;
}

.barraCor {
    background: #49A2E7;        
}

.barraCorRodape {
    background: #49A2E7;    
    height: 5px;
    border: 0;
    padding: 0
}

.barraCorAdmin {
    background: #AD1614; /* vermelho admin */
}

.barraCorRodapeAdmin {
    background: #AD1614;
    height: 5px;
    border: 0;
    padding: 0;
}

.barraCorAntigo {
    background: #004869;    
    background: -webkit-linear-gradient(#0095da, #004869);        
    background: -moz-linear-gradient(#0095da, #004869);
    background: -ms-linear-gradient(#0095da, #004869);            

    border-bottom: 1px solid #CACACA;    
    box-shadow: 0 0 7px #888;        
}

.barraCorRodapeAntigo {
    background: #004869;    
    background: -webkit-linear-gradient(#0095da, #004869);        
    background: -moz-linear-gradient(#0095da, #004869);
    background: -ms-linear-gradient(#0095da, #004869);            

    border-bottom: 1px solid #CACACA;    
    box-shadow: 0 0 7px #888;        
    height: 13px;
    border: 0;
    padding: 0
}


.barraCorRx {
    background: black;
}

.barraCorRodapeRx {
    background: black;    
    height: 8px;
    border: 0;
    padding: 0
}


#conteudo {
    padding: 0px 8px;        
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    padding: 0px;
    margin: 0px
}

#login-dialog {
    width: 290px;
    margin: auto;
    margin-top: 150px;
}


.grid-login {
    background-color: #f2f2f2;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 8px;
    padding: 10px;
    width: 100%;
}

.rotulo {
    width: 150px;
    text-align:right;
}

.rotuloDireita {
    width: 200px;
    text-align:right;
}

.rotulo100 {
    width: 100px;
    text-align:right;
}

/* Coluna do rotulo so do tamanho do maior texto (sem quebrar): o resto da largura fica para o campo */
.rotuloAjustado {
    width: 1%;
    white-space: nowrap;
    text-align:right;
    padding-left: 40px !important; /* 30px a mais que o padrao da celula */
}

/* Confirmacao generica (template): mensagem longa quebra linha em vez de esticar ate a borda da tela */
.ui-confirm-dialog {
    max-width: 600px;
}

/* Coluna de icone nas janelas de confirmacao: estreita e com o icone centralizado */
.colunaIcone {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding: 4px 24px !important;
}

.rotulo150 {
    width: 150px;
    text-align:right;
}

.rotulo200 {
    width: 200px;
    text-align:right;
}

.rotulo300 {
    width: 300px;
    text-align:right;
}

.rotulo50 {
    width: 50px !important;
    text-align:right;
}

.rotulo25 {
    width: 25px;
    text-align:right;
}


.campo {
    width: 150px;
    text-align:left;
}

.alinhaCentro {    
    text-align:center;
}

.alinhaDireita {    
    text-align:right;
}

.alinhaEsquerda {    
    text-align:left;
}

.colunaGrid {
    width: 50%;
}

.colunaGridDireita {
    text-align:right;
    width: 10%;
}

.colunaGridEsquerda {
    text-align:left;
    width: 50%;
}


.ui-icon.fa {
    text-indent: 0px !important;            
    background-image:none;    
}

.ui-panelgrid td {/* height: 30px

    */
}

.ui-datatable tbody tr {
    height: 10px !important;    
}

.ui-datatable-even {
    height: 10px;    
}

.ajax-status {
    position: absolute;
    top: 15%;
    left: 50%;
}

/* tira margem do titulo do dialog (em todos) */
.ui-dialog .ui-dialog-title {
    margin: 0px !important;
}
/* tira margem do icone de fechar do dialog (em todos) */
.ui-dialog.ui-widget-content .ui-dialog-titlebar-close {
    margin-top: 5px !important;
}

.ui-selectmanycheckbox td {
    border-width: 0px !important;
    padding: 0px !important;
}

.ui-selectmanycheckbox td label {
    padding-right: 10px;
}

.produto-tabela {
    width: 100% !important;
}

.produto-tabela input {
    width: 99%;
}


/* Coloca o botao do autocomplete com posi??o relativa (era absolute) */
.relativeButtonAutoComplete .ui-autocomplete-dropdown {
    position: relative !important;
}

/* customizo progress bar */
.ui-progressbar > .ui-progressbar-label{
    margin-top: 5px !important;
}
.ui-progressbar-label{
    margin-top: 5px !important;
}
.ui-progressbar .ui-progressbar-value.ui-widget-header{
    height: 100% !important;
}


/* Customiza TabView - in?cio */
.ui-tabs .ui-tabs-panel {    
    padding: 0.5em 0.2em !important;
}

.ui-tabs {
    padding: 0px !important;
}

.ui-tabs .ui-tabs-nav {
    margin: -1px !important;
    text-align: left !important;
}

.ui-tabs.ui-tabs-top > .ui-tabs-nav {
    padding: 0px !important;
}
/* Customiza TabView - fim */


/* Customiza campos do dialog de detalhe do prestador no guia medico */
.content-noborder .ui-widget-content {
    border: none;
}

.panelgrid-nopadding .ui-panelgrid .ui-panelgrid-cell{
    padding: 0px;
}

.datalistHorizontal {
    display: inline;
    float: right;
    margin-right: 5px;
    margin-top: 0px;
}

.layoutunit-height {
    height: 44px !important;
    padding: 0px !important;
}
/* Customiza campos do dialog de detalhe do prestador no guia medico */


/* Customiza fileupload para fotos */
.fileupload-buttonbarFoto > .ui-fileupload-buttonbar {
    border: 0px !important;
    padding: 0px !important;
    background: none !important;    
}

.fileupload-contentFoto > .ui-fileupload-content {
    display: none !important;
}

.ui-icon-plusthick {
    background: url('/sisrun/resources/images/search.png') no-repeat !important;
    
}
/* Customiza fileupload para fotos */



/* Layout padrao guia medico ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* altera a cor da borda */
.borderPadraoGuia > .ui-widget-content {
    border: 1px solid #d0f7df !important;
}

/* altera a cor do fundo (datalist,panel,datatable-header,datatable-paginator) */
.backgroundPadraoGuia .ui-datalist-header, 
.backgroundPadraoGuia .ui-panel-titlebar, 
.backgroundPadraoGuia th, 
.backgroundPadraoGuia .ui-widget-header {
    background-image: -webkit-linear-gradient(#F8FFF8, #d0f7df) !important;
    background-image: -moz-linear-gradient(#F8FFF8, #d0f7df) !important;
    background-image: -ms-linear-gradient(#F8FFF8, #d0f7df) !important;
}
/* altera a cor do linha da datatable (linhas odd) */
.linhaOdddatatablePadraoGuia .ui-datatable-odd {
    background-color: #F8FFF8;
}
/* altera a cor do mouse over na linha da datatable */
.selectiondatatablePadraoGuia .ui-state-hover {
    background-color: #d0f7df;
}

/* altera a cor do fundo do toolBar */
.toolbarPadraoGuia {
    margin-top: 15px;
    background-image: linear-gradient(#F8FFF8, #d0f7df) !important;
    border: 1px solid #d0f7df !important;
}
.toolbarPadraoGuia > .ui-toolbar-group-left {
    float: none !important;
    text-align: center;
}
/* Layout padrao guia medico ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */


/* Layout padrao profsyst */
.panelPadrao {
    margin-top: 20px;
    width: 70%;    
    margin-bottom: 25px;
}

.panelPadrao > .ui-panel-titlebar > .ui-panel-title {
    font-size: medium !important;
}

.toolbarPadrao {
    margin-top: 15px;    
}

.datatablePadrao {    
    margin-top: 20px;    
}

.panelgridPadrao {    
    margin-top: 10px;   
    width: 100%;
}

.botaoPadrao {        
    width: 100px;
}

/* Cobrar do Contas a Receber com as opções e-mail / app (card 4110): o menuButton é uma div, a cor do btn-warning vai no botão de dentro */
.botaoCobrarMenu > .ui-button { width: 100px; color: #fff; background-color: #F0AD4E; background-image: none; text-shadow: none; }
.botaoCobrarMenu > .ui-button:hover { background-color: #EC971F; }

.botaoGridPadrao {
    height: 22px;
}
/* ícone de duplicar (fa-clone) é mais alto que os outros e encostava na borda de baixo: menor, do tamanho dos demais */
.botaoGridPadrao .fa-clone { font-size: 12px; }

/* Quadros de indicador (home do admin, Sucesso do Cliente): p:panel com a cor na borda de cima (indicador + borda-*) */
.indicadorPadrao { cursor: pointer; text-align: center; }
.indicadorPadrao .ui-panel { border-top: 5px solid #cccccc; }
.indicadorPadrao.borda-vermelha .ui-panel { border-top-color: #d9534f; }
.indicadorPadrao.borda-laranja .ui-panel { border-top-color: #f0ad4e; }
.indicadorPadrao.borda-azul .ui-panel { border-top-color: #0095da; }
.indicadorPadrao.borda-cinza-azul .ui-panel { border-top-color: #5bc0de; }
.indicadorPadrao.borda-verde .ui-panel { border-top-color: #5cb85c; }
.indicadorValor { font-size: 25px; font-weight: bold; color: #333333; }
.indicadorValor.zero { color: #cccccc; }
.indicadorValor.cor-vermelha { color: #d9534f; }
.indicadorValor.cor-laranja { color: #f0ad4e; }
.indicadorValor.cor-azul { color: #0095da; }
.indicadorValor.cor-verde { color: #5cb85c; }
.indicadorRotulo { font-size: 12px; }
.textoSub { font-size: 11px; color: #777777; }
.textoExplica { font-size: 12px; color: #777777; text-align: left; }
/* Pontos de risco (Sucesso do Cliente): a cor vem da prioridade */
.pontosRisco { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 10px; color: #ffffff; font-weight: bold; text-align: center; }
.seloNovo { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #5bc0de; color: #ffffff; font-size: 11px; font-weight: bold; }
.seloMelhoria { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #e8f3ec; color: #25693a; border: 1px solid #b9dcc5; font-size: 11px; font-weight: bold; }
.seloAviso { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #fff4e0; color: #8a5300; border: 1px solid #f0cf94; font-size: 11px; font-weight: bold; }
.novidadePonto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1e88e5; margin-right: 6px; vertical-align: middle; }
.novidadeData { float: right; font-size: 11px; color: #aaaaaa; margin-left: 8px; line-height: 20px; }

.toolbarDetalhe {
    margin-top: 15px;    
    text-align: center;
    width: 50%;    
}
.toolbarDetalhe > .ui-toolbar-group-left {
    float: none !important;
    text-align: center;
}
/* Botões lado a lado nas barras padrão (telas e janelas) com espaço entre eles; antes ficavam colados. A barra de ícones da planilha não entra */
.toolbarPadrao > .ui-toolbar-group-left > .ui-button + .ui-button, .toolbarPadrao > .ui-toolbar-group-right > .ui-button + .ui-button,
.toolbarDetalhe > .ui-toolbar-group-left > .ui-button + .ui-button { margin-left: 6px; }

.toolbarExclusao {        
    width: 70%;
}

.fieldsetPopUp  {        
    background-color: #f5f5f5 !important;
}


/* Altera??o para aplicar css do bootstrap nas classes de bot?o padr?o (o primefaces sobreescreve o do bootstrap) */
.btn-primary, .ui-button.btn-primary {
    color: #fff;
    background-color: #337AB7;
    background-image: none;
    text-shadow: none;
}
.btn-primary, .ui-button.btn-primary:hover {
    background-color: #286090;
}

.btn-success, .ui-button.btn-success {
    color: #fff;
    background-color: #5CB85C;
    background-image: none;
    text-shadow: none;
}
.btn-success, .ui-button.btn-success:hover {
    background-color: #449D44;
}

.btn-info, .ui-button.btn-info {
    color: #fff;
    background-color: #5BC0DE;
    background-image: none;
    text-shadow: none;
}
.btn-info, .ui-button.btn-info:hover {
    background-color: #31B0D5;
}

.btn-warning, .ui-button.btn-warning {
    color: #fff;
    background-color: #F0AD4E;
    background-image: none;
    text-shadow: none;
}
.btn-warning, .ui-button.btn-warning:hover {
    background-color: #EC971F;
}

.btn-danger, .ui-button.btn-danger {
    color: #fff;
    background-color: #D9534F;
    background-image: none;
    text-shadow: none;
}
.btn-danger, .ui-button.btn-danger:hover {
    background-color: #C9302C;
}

.btn-tutor, .ui-button.btn-tutor {
    color: #fff;
    background-color: #D2B4DE;
    background-image: none;
    text-shadow: none;
}
.btn-warning, .ui-button.btn-tutor:hover {
    background-color: #aa71c1;
}

/* Altera??o para aplicar css do bootstrap nas classes de bot?o padr?o (o primefaces sobreescreve o do bootstrap) */

/* Disabled mais escuro */
.ui-state-disabled {
    opacity: .90 !important;
}

/* Datalist na horizantal */
.horizontal {
    display: inline;
    float : left;
    width: 65px;
    padding: 0px 0px;
}
.ui-datalist-data {
    overflow:auto;
}

/* coloca margem na direita de cada itemMenu */
.ui-menuitem-text {
    margin-right: 0.4em;
}

/* retira o * dos campos required ou @NotNull */
.ui-outputlabel-rfi {
    display: none;
}

/* dimunui tamanho do dia no schedule */
.ui-panelgrid td .fc-day-number{
    height: 10px !important;
}

/* ajusta altura dos combos com os demais */
.ui-selectonemenu { 
    display: inline-block; 
    vertical-align: top; 
}

.ui-inputswitch { 
    display: inline-block; 
    vertical-align: top !important;
}

.ui-chkbox {
    display: inline-block; 
    vertical-align: middle !important;    
}

/* cores dos treinos*/
.cor-treino-proposto{
    color: #0095da !important;    
}

.cor-treino-feito{
    color: #449D44 !important;        
}

.cor-treino-perdido{
    color: #D9534F !important;    
}

.cor-treino-avulso{
    color: #EC971F !important;    
}

.treino-proposto{
    background: #0095da !important;
    border-color: #0095da !important;
    text-align: center;
    max-height: 50px;
    min-height: 20px;
    cursor: pointer;
}

/* treino proposto com palavra-chave sem valor: selo "!" no canto do cartão (PlanilhaMB.deParaTreinoSchedule) */
.treino-a-definir { position: relative; }
.treino-a-definir::after {
    content: "!"; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: #f0ad4e; color: #fff; font: bold 10px/14px Arial, sans-serif; text-align: center; box-shadow: 0 0 0 1px #fff;
}

.treino-proposto-semanal{
    background: #0095da !important;
    border-color: #0095da !important;
    text-align: center;
    max-height: 400px;
    min-height: 50px;
    cursor: pointer;
}

.treino-feito{
    background: #449D44 !important;
    border-color: #449D44 !important;    
    text-align: center;
    max-height: 50px;
    min-height: 20px;
    cursor: pointer;
}

.treino-feito-semanal{
    background: #449D44 !important;
    border-color: #449D44 !important;    
    text-align: center;
    max-height: 200px;
    min-height: 50px;
    cursor: pointer;
}

.treino-perdido{
    background: #D9534F !important;
    border-color: #D9534F !important;    
    text-align: center;
    max-height: 50px;
    min-height: 20px;
    cursor: pointer;
}

.treino-perdido-semanal{
    background: #D9534F !important;
    border-color: #D9534F !important;    
    text-align: center;
    max-height: 200px;
    min-height: 50px;
    cursor: pointer;
}

.treino-avulso{
    background: #EC971F !important;
    border-color: #EC971F !important;    
    text-align: center;
    max-height: 50px;
    min-height: 20px;
    cursor: pointer;
}

.treino-avulso-semanal{
    background: #EC971F !important;
    border-color: #EC971F !important;    
    text-align: center;
    max-height: 200px;
    min-height: 50px;
    cursor: pointer;
}


/* troco cor padrão do calendário*/
.fc-today{
    color: #333333 !important;
    background: #f5f5f5 !important;
}

.fc-day-grid-event > .fc-content{
    max-height: 50px;
}

/* cores dos status financeiros*/
.corStatusPago{
    color:#008000;
}

.corStatusNaoPago{
    color:#0000FF;
}

.corStatusAtrasado{
    color:#FF0000;
}

/* linha em negrito na datatable*/
.linhaNegrito{
    font-weight: bolder;
}

/* mantém o negrito mesmo no hover */
.ui-datatable tbody tr.linhaNegrito:hover {
    font-weight: bold !important;
}

/* titulo maior no header dos avisos */
.ui-datascroller-header {
    font-size: medium;
}


.catalagoLogo {
    text-align:left;
    min-width: 200px;
    width: 200px;
}

.prof-panel-grid .ui-panelgrid-content{
    border: none;
}

.planilhaDiaSemana {
    background-color: #f5f5f5 !important;        
}

.planilhaAccordion .ui-accordion-content{
    padding: 0 !important;
}

.planilhaAccordion .ui-accordion-header{
    background-color: #fafafa !important;  
    text-align: left;
}

.toolbarPlanilha {    
    text-align: center;    
}
.toolbarPlanilha > .ui-toolbar-group-left {
    float: none !important;
    text-align: center;
}

/*reponsive nas grids com reflow */
@media ( max-width: 650px ) { /* Default 35em */
    .ui-datatable-reflow thead th,
    .ui-datatable-reflow tfoot td {
        display: none !important;
    }

    .ui-datatable-reflow .ui-datatable-data td { 
        text-align: left !important;
        display: block !important;
        border: 0px none !important;
        width: 100% !important;
        -webkit-box-sizing: border-box !important;
        -moz-box-sizing: border-box !important;
        box-sizing: border-box !important;
        float: left !important;
        clear: left !important;
    }

    .ui-datatable-reflow .ui-datatable-data.ui-widget-content {
        border: 0px none !important;
    }

    .ui-datatable-reflow .ui-datatable-data tr.ui-widget-content {
        border-left: 0px none !important;;
        border-right: 0px none !important;;
    }

    .ui-datatable-reflow .ui-datatable-data td .ui-column-title { 
        padding: .4em !important;; 
        min-width: 35% !important; 
        display: inline-block !important;
        margin: -.4em 1em -.4em -.4em !important;
    }
}


/* Datalist na horizantal */
.horizontal-msg {
    display: inline;
    float : left;
    width: 140px;
    padding: 0px 0px;     
}

/* Usado no topo de mensagens */
.bolinha-acima {
    background-color: #EB4A40;
    color: #ffffff;
    border-radius: 100%;      
    position: relative;    
    top: -15px;
    right: 5px;      
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;    
}

.bolinha-acima-feedback {
    background-color: #EB4A40;
    color: #ffffff;
    border-radius: 100%;      
    position: relative;        
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;   
    z-index: 99;
}

.bolinha-acima-novidades {
    background-color: #EB4A40;
    color: #ffffff;
    border-radius: 100%;      
    position: relative;    
    top: -65px;
    right: -45px;      
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;    
}


.bolinha-acima-novidades2 {
    background-color: #F5F5F5;
    color: #333333;
    border-radius: 100%;      
    position: relative;    
    top: -90px;
    right: -45px;      
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;    
}
.bolinha-loading2 {
    background-color: #dcdcdc;
    color: transparent;
    min-width: 18px;
    min-height: 18px;
    animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}


.bolinha-acima-novidades3 {
    background-color: #F5F5F5;
    color: #333333;
    border-radius: 100%;      
    position: relative;    
    top: -65px;
    right: -40px;      
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;    
}


.bolinha-acima-novidades4 {
    background-color: #F5F5F5;
    color: #333333;
    border-radius: 100%;      
    position: relative;    
    top: -115px;
    right: -45px;      
    padding: 4px 8px;
    font-size: small;
    font-weight: bold;
    text-align: center;    
}
.bolinha-loading4 {
    background-color: #dcdcdc;
    color: transparent;
    min-width: 18px;
    min-height: 18px;
    animation: pulse 1.2s infinite ease-in-out;
}

.carinha-numero {
    display: inline-block;
    min-width: 14px;    
}

.carinha-numero-skeleton {
    background-color: #e0e0e0;
    color: transparent;
    border-radius: 4px;
    height: 14px;
    animation: pulse 1.2s infinite ease-in-out;
}


/* Bloqueios de horários na agenda */
.agenda-block{
    background: #f2dede !important;    
    border: none !important;    
    cursor: not-allowed;
}

.agenda-block .fc-content{
    display: none !important;
}

.agenda-agendado{
    background: #0095da !important;
    border-color: #0095da !important;
    text-align: left;
    cursor: pointer;
}

.agenda-ja-realizado{
    background: #449D44 !important;
    border-color: #449D44 !important;    
    text-align: left;
    cursor: pointer;
}

.agenda-cancelado{
    background: #D9534F !important;
    border-color: #D9534F !important;    
    text-align: left;   
    cursor: pointer;
}

.agenda-nao-compareceu{
    background: #EC971F !important;
    border-color: #EC971F !important;    
    text-align: left;  
    cursor: pointer;
}

/* tira o border do panel da home */
.ui-datascroller-content {
    border: none !important;
    padding: 0 !important;
}

/* faz oa tabview se ajustarem a celulares */

@media screen and (max-width: 810px) {
    .ui-tabs.ui-tabs-top > .ui-tabs-nav li{
        width: 100% !important;
    }
}

/* tira borda de panelgrid */    
.no-border > .ui-panelgrid-content{
    border: 0px solid #c7cdd1 !important;
}

/* tira scroll chato datatable */    
.ui-datatable-tablewrapper {
    overflow: hidden !important;
}

/* tira borda do datalist */    
.ui-widget-content .ui-datalist-content{
    border: none;
    background: transparent;
    background-image: none;
}

/* cores dos status financeiros*/
.corPlanilhaSemana{
    color:green;    
}

.corPlanilhaNaoSemana{
    color:black;        
}


.strava-icon {
    background-image: url("/sisrun/resources/icons/strava-brands.svg") !important;
}

/* ciclo menstrual no calendar */

.agenda-menstruacao {
    background: #DC000C !important;
    border-color: #DC000C !important;
    text-align: center;
    max-height: 50px;
    min-height: 25px;
    cursor: pointer;
    color: white !important; 
}

.agenda-ovulacao {
    background: #DBF3FA !important;
    border-color: #DBF3FA !important;
    text-align: center;
    max-height: 50px;
    min-height: 25px;
    cursor: pointer;    
}


/* cores dos status*/
.cor-ativo{
    color: #449D44 !important;        
}

.cor-cancelado{
    color: #D9534F !important;    
}

.cor-suspenso{
    color: #EC971F !important;    
}

.cor-pediu-excluir{
    color: red !important;    
    font-weight: bold;
}


/* Altera??o para aplicar css do bootstrap nas classes de bot?o padr?o (o primefaces sobreescreve o do bootstrap) */
.btn-mais-home, .ui-button.btn-mais-home {
    color: #fff;
    background-color: #0491FE;
    background-image: none;
    text-shadow: none;
    border-radius: 15px;
    border: 0;
}
.btn-mais-home, .ui-button.btn-mais-home:hover {
    background-color: #337AB7;
}


/* pre cadastro header */

.header-escuro > .ui-accordion-header{
    background-color: #ddd;
    font-weight: bold;
}

.my-dialogs {
    margin-top: 50px;
} 

/* usados nas bolinhas de trimp */

.container {
    display: flex; /* Permite alinhar os círculos em linha */
    justify-content: center; /* Espaço igual entre os círculos */
    margin-top: 0px; /* Margem acima dos círculos */
    min-height: 40px;
}
.circulo {
    width: 25px; /* Largura do círculo */
    height: 25px; /* Altura do círculo */
    background-color: transparent; /* Fundo transparente */
    border: 1px solid; /* Borda verde */
    border-radius: 50%; /* Deixa o elemento circular */
    display: flex; /* Usado para centralizar o conteúdo */
    align-items: center; /* Alinha verticalmente o conteúdo */

    text-align: center; /* Centraliza o texto */
    flex-direction: column; /* Alinha os números e texto em coluna */
    font-size: 14px; /* Tamanho da fonte do número */    
    margin: 0 7px;
}
.texto {
    font-size: 11px; /* Tamanho da fonte do texto abaixo do círculo */    
    margin-top: 5px; /* Espaço acima do texto */
}


/* Garante que o schedule não desça */
.ui-schedule {
    margin-top: 0 !important;
}

/* Layout responsivo */
@media (max-width: 1000px) {
    .ui-panelgrid.ui-panelgrid-2>.ui-grid-responsive {
        display: block !important;
    }

    .ui-panelgrid.ui-panelgrid-2>.ui-grid-responsive>.ui-grid-row {
        width: 100% !important;
    }

    /* Opcional: fazer o resumo ficar abaixo em telas pequenas */
    #resumoPanel {
        margin-top: 20px;
        max-height: none;
    }
}


/* Alinhamento vertical */
.ui-panelgrid.ui-panelgrid-2>.ui-grid-responsive>.ui-grid-row {
    vertical-align: top;
    display: flex;
}

/* Ajuste de altura para os painéis */
.ui-panel {
    display: flex;
    flex-direction: column;
}


/* Remove marcadores do dataList */
.ui-datalist .ui-datalist-data {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Estilo para as colunas do panelGrid */
.label-col {
    text-align: right;
    padding-right: 10px;
    color: #7f8c8d;
}

.value-col {
    text-align: left;
    font-weight: 500;
}

/* Melhorias de espaçamento */
.ui-panel .ui-panel-content {
    padding: 10px !important;
}


/* Garante alinhamento correto dos números */
.value-col {
    font-family: monospace;
    text-align: right;
}

/* Espaçamento entre número e unidade */
.h-unit {
    margin-left: 2px;
    color: #7f8c8d;
}


/* Estilo específico apenas para o painel com a classe compact-header */
.compact-header .ui-panel-titlebar {
    height: 20px !important;    
}

/* botão com icone de IA */
.ia-icon-button .ui-button-text {
    background-image: url("/sisrun/javax.faces.resource/images/ia-sisrun.svg.xhtml?v=mx5nt5g5");
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: top left;    
    text-indent: -9999px; /* Esconde o texto se quiser só o ícone */    
}

/*tela planilha gerador de ia */
.campoTexto {
    margin-bottom: 12px;
}

.labelCampo {
    font-weight: bold;
    color: #444;
    margin-right: 4px;
}

.painel-dispositivo {
    min-height: 230px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 6px #ccc;
    padding: 15px;
}

.painel-dispositivo img {
    margin-bottom: 10px;
}

.painel-dispositivo .ui-button-danger {
    margin-top: 10px;
}

/* visual do accordion do FAQ */
.faq-acc .ui-accordion-header {
    background: #f7f7f7;
    border-radius: 6px;
    margin: 6px 0;
    padding-left: 10px;
}
.faq-acc .ui-accordion-content {
    background: #fff;
}
.faq-acc .ui-accordion-header .fa {
    margin-right: 6px;
    opacity: .85;
}

/* container */
.datatable-skeleton {
    margin-top: 10px;
}

/* linha */
.datatable-skeleton-row {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

/* avatar */
.datatable-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* texto */
.datatable-skeleton-text {
    flex: 1;
}

.skeleton-line {
    height: 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.skeleton-line.large {
    width: 80%;
}

.skeleton-line.small {
    width: 60%;
}

/* botão */
.datatable-skeleton-button {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

/* efeito skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        #eeeeee 25%,
        #dddddd 37%,
        #eeeeee 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* desativa status na home, pq tem skeleton 
body:has(.home) .ajax-status {
    display: none !important;
}
*/
body.page-home .ajax-status {
    display: none !important;
}


.btnUpgradeIcon {
    
    border: none !important;
    box-shadow: none !important;
    padding: 2px 6px;
    color: #555;
}

.btnUpgradeIcon:hover {
    color: #337ab7;
    background: transparent !important;
}


.badge-upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F5F5F5;
    color: #333333 !important;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;    
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.badge-upgrade-link:hover {
    background-color: #ec971f;
    text-decoration: none;
    color: #fff;
}

.badge-contador {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #d9534f;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

.radioCentralizado.ui-selectoneradio {
    margin: 0 auto;
}

.linhaDestaque{
    background: #e8f5e9 !important;
    font-weight: bold;
    color: #2e7d32 !important;
}

.painelAlunosFixo {
    position: sticky;
    top: 10px;
    z-index: 10;
}

.cardExplicacaoCarga {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f7f9fa;
    border-left: 4px solid #0095da;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.cardExplicacaoCarga .tituloExplicacao {
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.cardExplicacaoCarga .itemLegendaCarga {
    display: inline-block;
    margin-right: 16px;
    white-space: nowrap;
}

.cardExplicacaoCarga .corLegendaCarga {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: baseline;
}

.cardExplicacaoCarga .textoExplicacao {
    margin-top: 4px;
}
/* Planejado x Realizado (dialogComparacao do acompanhamento) */
.cmpOk {
    color: #4a9d5f;
}
.cmpLeve {
    color: #c58f00;
}
.cmpAlto {
    color: #c0392b;
    font-weight: bold;
}
.cmpNa {
    color: #999999;
}
.cmpFidelidade {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin: 8px 0;
}

/* Fidelidade do Treino: ANEL de progresso (identidade própria - a Prioridade de Atenção é nível/barra,
   o Risco de Abandono é gauge). --p = percentual (inline, do bean), --cor = cor da faixa (classe). */
.cmpCirculo {
    --p: 0;
    --cor: #b5b5b5;
    --t: 5px;
    position: relative;
    isolation: isolate;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    color: var(--cor);
    font-weight: bold;
    font-size: 0.95em;
    background-color: #e4e7eb; /* fallback sem conic-gradient */
    background: conic-gradient(var(--cor) calc(var(--p) * 1%), #e4e7eb 0);
}
.cmpCirculo::before {
    content: "";
    position: absolute;
    left: var(--t); top: var(--t); right: var(--t); bottom: var(--t);
    border-radius: 50%;
    background: #ffffff;
    z-index: -1; /* acima do anel (fundo do próprio elemento), abaixo do número */
}
.cmpCirculoOk { --cor: #4a9d5f; }
.cmpCirculoLeve { --cor: #c58f00; }
.cmpCirculoAlto { --cor: #c0392b; }
.cmpCirculoNa { --cor: #b5b5b5; color: #999999; background: #e4e7eb; }

/* Cabeçalho do dialog Planejado x Realizado: foto + nome à esquerda, score à direita */
.cmpHeader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: left;
}
.cmpHeaderFoto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cmpHeaderInfo {
    flex: 1;
    min-width: 0;
}
.cmpHeaderCentro {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.cmpHeaderNome {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #333333;
}
.cmpHeaderSub {
    color: #777777;
    margin-top: 2px;
}
.cmpHeaderFid {
    margin-top: 6px;
    font-weight: bold;
    color: #333333;
}
.cmpCirculoLg {
    --t: 7px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.25em;
    flex-shrink: 0;
}

/* Dialogs do Score: nada neles precisa de rolagem horizontal (o width:100% + padding
   internos estouram 1-2px e criam a barra à toa) */
#dialogComparacao .ui-dialog-content,
#dialogAjudaScore .ui-dialog-content {
    overflow-x: hidden;
}

/* Tema antigo ignora o ui-button-warning do PF8: pinta na mão (ex.: Recalcular do dialogComparacao) */
.ui-button.ui-button-warning {
    background: #c58f00 !important;
    border-color: #b58300 !important;
    color: #ffffff !important;
}
.ui-button.ui-button-warning .ui-button-text,
.ui-button.ui-button-warning .ui-icon {
    color: #ffffff !important;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Central de Atenção ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Um registro visual por aluno: foto + nome + motivos + pontuação + ações (flex, sem tabela larga) */
.caFiltros > * { vertical-align: middle; }
.caTotalizador { color: #999999; font-size: 0.85em; margin-top: 6px; text-align: right; }
.caLinha { display: flex; align-items: center; gap: 10px; }
.caFoto { flex: 0 0 auto; }
.caCorpo { flex: 1 1 auto; min-width: 0; text-align: left; }
.caTopo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.caNome { color: #333333; font-size: 1.05em; }
.caNomeLg { font-size: 1.3em; display: block; }
.caPrioridade { font-size: 0.85em; font-weight: bold; }
.caMotivo { color: #444444; font-size: 0.95em; margin-top: 2px; }
.caDetalhe { color: #888888; font-size: 0.85em; }
.caExtra { color: #888888; font-size: 0.85em; margin-top: 2px; }
.caPontuacao { flex: 0 0 auto; }
.caBotao.ui-button { width: 140px; margin: 2px 2px; white-space: nowrap; }
.caAcoesDetalhe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 0 8px; }
.caAcoesDetalhe .caBotao.ui-button { width: 190px; margin: 0; }
/* Central de Atenção > Ações: as ações com IA embaixo, separadas por uma linha e com título */
.caAcoesIa { border-top: 1px solid #e6e6e6; margin-top: 4px; padding-top: 10px; }
.caAcoesIaTitulo { width: 100%; text-align: center; font-size: 12px; font-weight: 600; color: #5b3fb0; }
.caAcoesIaTitulo span { font-weight: normal; color: #8a94a6; }
/* ação da situação principal do aluno: primeira do bloco e com contorno (CentralAtencaoAlunoTO.acaoPrincipal) */
.caAcoesDetalhe .caAcaoPrincipal { order: -1; }
.caAcoesDetalhe .ui-button.caAcaoPrincipal, .caAcoesDetalhe .caAcaoPrincipal .ui-button { box-shadow: 0 0 0 3px #f2c94c; }
/* botão de IA com o custo estimado embaixo */
.caIaItem { display: inline-flex; flex-direction: column; align-items: center; }
.caIaCusto { font-size: 11px; color: #8a94a6; margin-top: 2px; }
/* aba Situações: atalho da própria situação e "Já tratei" só dela */
.caSituacaoAcoes { margin-top: 3px; font-size: 12px; }
.caSituacaoAcoes a { margin-right: 12px; }
.caSituacaoAcoes a.caLinkIa { color: #5b3fb0; font-weight: 600; }
.caSituacaoAcoes a.caLinkTratei { color: #27AE60; }

/* Prioridade de Atenção: NÍVEL (barra de 4 segmentos + rótulo) - identidade própria, não é percentual
   (a Fidelidade do Treino é anel, o Risco de Abandono é gauge). A pontuação fica só no tooltip. */
.caNivel { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; }
.caNivelBarra { display: flex; gap: 3px; }
.caNivelSeg { width: 16px; height: 9px; border-radius: 2px; background: #e4e7eb; }
.caNivelLg .caNivelSeg { width: 22px; height: 12px; }
.caNivelSm .caNivelSeg { width: 10px; height: 7px; }
.caNivelRotulo { font-size: 0.75em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; color: #7f8c8d; }
.caNivelLg .caNivelRotulo { font-size: 0.9em; }
.caNivelSm .caNivelRotulo { font-size: 0.65em; }
.caNivel.caCritica .caNivelOn { background: #c0392b; }
.caNivel.caAlta .caNivelOn { background: #e67e22; }
.caNivel.caMedia .caNivelOn { background: #c58f00; }
.caNivel.caBaixa .caNivelOn { background: #7f8c8d; }
.caNivel.caCritica .caNivelRotulo { color: #c0392b; }
.caNivel.caAlta .caNivelRotulo { color: #e67e22; }
.caNivel.caMedia .caNivelRotulo { color: #c58f00; }
.caNivel.caBaixa .caNivelRotulo { color: #7f8c8d; }
.caPrioridade.caCritica { color: #c0392b; }
.caPrioridade.caAlta { color: #e67e22; }
.caPrioridade.caMedia { color: #c58f00; }
.caPrioridade.caBaixa { color: #7f8c8d; }

/* Dialog de detalhe */
.caDialog .ui-dialog-content { overflow-x: hidden !important; }
.caDialog .toolbarDetalhe, .caDialog .ui-tabs { box-sizing: border-box; }
.caDetalheTopo { padding-bottom: 8px; border-bottom: 1px solid #eeeeee; }
.caSecao { margin: 12px 0 4px 0; font-weight: bold; color: #555555; text-transform: uppercase; font-size: 0.8em; letter-spacing: 0.5px; }
.caSituacao { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #eeeeee; }
.caSituacaoTexto { flex: 1 1 auto; min-width: 0; text-align: left; }
.caPontos { flex: 0 0 auto; color: #777777; font-size: 0.85em; }
.caRodape { margin-top: 10px; color: #999999; font-size: 0.8em; text-align: right; }

/* Card da home: top 5 */
.caHomeRodape { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.caHomeTotal { color: #777777; font-size: 0.9em; }
.caHomeLinha { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #eeeeee; }
.caHomeNome { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.caHomeMotivo { display: block; color: #888888; font-size: 0.8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caHomeVazio { color: #777777; padding: 6px 0; }

/* Mobile: foto + nome + pontuação na primeira linha, motivos abaixo, ações em linha */
@media (max-width: 700px) {
    .caPainel.ui-panel { width: 100% !important; }
    .caFiltros > * { display: inline-block; margin-bottom: 4px; }
}

/* ~~~~~~~~~~~~~~~~~~~~~ Parâmetros do Sistema > aba Ferramentas ~~~~~~~~~~~~~~~~~~~~~ */
.ferrBloco { display: block; border: 1px solid #e0e0e0; border-radius: 4px; padding: 12px 14px; margin-bottom: 12px; text-align: left; }
.ferrTitulo { font-weight: bold; color: #333333; margin-bottom: 4px; text-align: left; }
.ferrTexto { color: #666666; font-size: 0.9em; line-height: 1.5; text-align: left; }
.ferrControles { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ferrSituacao { display: block; margin-top: 8px; font-size: 0.9em; color: #31708f; }

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Home personalizável ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Grade de quadros da home do treinador: 3 colunas, ordem vem da preferência (CSS order) */
.homeGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 5px; column-gap: 10px; align-items: start; margin-top: 10px; padding-bottom: 60px; } /* folga: rodape e fixo, ultima linha nao pode terminar colada no fim da pagina */
/* grid-auto-rows 5px + span calculado no JS (homeMasonry em home.xhtml): colunas empilham sem alinhar linhas */
.homeQuadro { min-width: 0; }
/* Entrada da home: os quadros só aparecem depois da 1ª carga (indicadores) e do 1º cálculo do masonry - antes eles se
   encavalavam por um instante (placeholder baixo, conteúdo alto, span ainda velho). Fallback só em CSS: se o JS falhar,
   aparecem sozinhos em 3 s (a home nunca fica em branco) */
.homeGrid { transition: opacity .25s ease; }
.homeGrid.homeGridCarregando { opacity: 0; animation: homeGridMostra .25s ease 3s forwards; }
@keyframes homeGridMostra { to { opacity: 1; } }
/* Quadro que é só uma tabela: ela já traz cabeçalho e rodapé próprios, o painel não precisa forrar */
.homeQuadro .quadroTabela > .ui-panel-content { padding: 0 !important; } /* !important porque a regra geral de .ui-panel-content, lá em cima, também usa */
/* A bolinha do contador é relative com top negativo: sem isto ela ainda reserva a altura dela no rodapé do quadro */
.bolinhaSemFluxo { display: block; height: 0; }
.homeAvisos { margin-top: 10px; }
@media (max-width: 960px) {
    .homeGrid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* Tela Personalizar Home */
.phIntro { color: #555555; margin: 6px 0 4px 0; }
.phTitulo { font-weight: bold; color: #333333; }
.phDescricao { color: #777777; font-size: 0.9em; }
.phSeta.ui-button { width: 34px; margin: 0 2px; }
@media (max-width: 960px) {
    .phPainel.ui-panel { width: 100% !important; }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Retenção de Alunos (Risco de Abandono) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Identidade própria: GAUGE/velocímetro (a Fidelidade é anel, a Prioridade de Atenção é nível/barra) */
.retIndicadores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.retIndicador { flex: 1 1 140px; background: #f7f8fa; border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px 12px; text-align: center; min-width: 0; }
.retIndicadorValor { display: block; font-size: 1.8em; font-weight: bold; color: #333333; line-height: 1.2; }
.retIndicadorRotulo { color: #777777; font-size: 0.85em; }
.retIndicador.retAlto .retIndicadorValor { color: #c0392b; }
.retIndicador.retMedio .retIndicadorValor { color: #c58f00; }
.retIndicador.retBaixo .retIndicadorValor { color: #4a9d5f; }
.retGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.retCard { background: #ffffff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px 12px; min-width: 0; overflow: hidden; }
.retCardTitulo { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: bold; color: #555555; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; text-align: left; }
.retSub { color: #999999; font-weight: normal; text-transform: none; letter-spacing: 0; }
.retPeriodo.ui-selectonebutton .ui-button { font-size: 0.85em; padding: 0 4px; }
.retVazio { color: #888888; padding: 24px 0; text-align: center; font-size: 0.9em; }
/* Altura no container (não só no canvas): gráfico criado numa aba oculta nasce com 0 px e o resize
   ao mostrar a aba lê a altura do container */
.retCard .ui-chart { height: 230px; position: relative; }
.retDialog .ui-chart { height: 180px; position: relative; }
/* toolbar 100% + padding estourava 7 px e abria scroll horizontal no dialog */
.retDialog .ui-dialog-content { overflow-x: hidden !important; }
.retDialog .toolbarDetalhe, .retDialog .ui-tabs { box-sizing: border-box; }

/* Gauge: semicírculo com as 3 faixas fixas (Baixo | Médio | Alto) e agulha no score (--s, 1,8 grau por ponto) */
.retGaugeBloco { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.retGaugeBlocoLg { flex: 0 0 auto; }
.retGauge { --s: 0; --g: 120px; position: relative; display: inline-block; width: var(--g); height: calc(var(--g) / 2); overflow: hidden; }
.retGaugeSm { --g: 72px; }
.retGaugeLg { --g: 170px; }
.retGauge::before {
    content: ""; position: absolute; left: 0; top: 0; width: var(--g); height: var(--g); border-radius: 50%;
    background: #e4e7eb; /* fallback sem conic-gradient */
    background: conic-gradient(from 270deg, #4a9d5f 0deg 72deg, #c58f00 72deg 126deg, #c0392b 126deg 180deg, transparent 180deg 360deg);
}
.retGaugeFuro { position: absolute; left: calc(var(--g) * 0.18); top: calc(var(--g) * 0.18); width: calc(var(--g) * 0.64); height: calc(var(--g) * 0.64); border-radius: 50%; background: #ffffff; }
.retGaugeAgulha {
    position: absolute; left: calc(var(--g) / 2 - 1px); bottom: 0; width: 2px; height: calc(var(--g) * 0.44); background: #333333; border-radius: 2px;
    transform-origin: bottom center; transform: rotate(calc(var(--s) * 1.8deg - 90deg));
}
.retGaugeAgulha::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: #333333; }
.retGaugeValor { font-weight: bold; color: #333333; font-size: 1.05em; margin-top: 2px; }
.retGaugeValorLg { font-size: 1.5em; }
.retGaugeFaixa { font-size: 0.75em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.retGaugeFaixa.retAlto { color: #c0392b; }
.retGaugeFaixa.retMedio { color: #c58f00; }
.retGaugeFaixa.retBaixo { color: #4a9d5f; }

/* Tendência */
.retTend { font-size: 0.9em; font-weight: bold; white-space: nowrap; }
.retTendSubindo { color: #c0392b; }
.retTendDescendo { color: #4a9d5f; }
.retTendEstavel { color: #7f8c8d; }
.retTendSem { color: #b5b5b5; font-weight: normal; }

/* Componentes do risco (detalhe): barras simples */
.retComp { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.retCompRotulo { flex: 0 0 180px; text-align: left; color: #444444; font-size: 0.9em; }
.retCompBarra { flex: 1 1 auto; height: 10px; background: #eeeeee; border-radius: 5px; overflow: hidden; }
.retCompPreench { height: 100%; background: #c0392b; border-radius: 5px; }
.retCompValor { flex: 0 0 56px; text-align: right; color: #555555; font-size: 0.85em; font-weight: bold; }

@media (max-width: 960px) {
    .retPainel.ui-panel { width: 100% !important; }
    .retGrid { grid-template-columns: 1fr; }
    .retCompRotulo { flex-basis: 120px; }
}
/* Card da home: só os dois números (os gráficos ficam na tela) */
.retHomeIndicadores { margin-top: 4px; }
.retHomeIndicadores .retIndicador { padding: 6px 8px; }
.retHomeIndicadores .retIndicadorValor { font-size: 1.5em; }

/* Indisponibilidade do Aluno: aba do cadastro (situacao) e marcacao do dia na planilha semanal */
.indSituacao { font-weight: bold; }
.indSituacaoAndamento { color: #6d5ca3; }
.indSituacaoFutura { color: #2980b9; }
.indSituacaoEncerrada { color: #7f8c8d; }
.indSituacaoInativa { color: #aaaaaa; }
.indLinhaInativa td { color: #aaaaaa !important; }
.indObservacao { word-break: break-word; }
/* Hachuras do dia na planilha: linha fina translucida sobre o fundo, discreta.
   Ordem importa (mesma especificidade): menstruacao < lesao < indisponibilidade, a de baixo prevalece no mesmo dia */
.planilhaDiaMenstruacao .ui-g:first-child > .planilhaDiaSemana { background: repeating-linear-gradient(45deg, rgba(194,24,91,.22) 0 1px, transparent 1px 7px) #f5f5f5 !important; }
.planilhaMenstruacao { color: #c2185b; font-size: smaller; font-weight: bold; cursor: help; white-space: nowrap; }
.planilhaDiaLesao .ui-g:first-child > .planilhaDiaSemana { background: repeating-linear-gradient(45deg, rgba(230,81,0,.25) 0 1px, transparent 1px 7px) #f5f5f5 !important; }
.planilhaLesao { color: #e65100; font-size: smaller; font-weight: bold; cursor: help; white-space: nowrap; }
.planilhaDiaIndisponivel .ui-g:first-child > .planilhaDiaSemana { background: repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0 1px, transparent 1px 7px) #f5f5f5 !important; }
.planilhaIndisponivel { color: #6d5ca3; font-size: smaller; font-weight: bold; cursor: help; white-space: nowrap; }
/* Calendario mensal: so a linha do numero do dia (fc-day-top) e legenda; mesma ordem de prioridade */
.fc-day-top.agenda-menstruacao-dia { background: repeating-linear-gradient(45deg, rgba(194,24,91,.22) 0 1px, transparent 1px 5px) !important; cursor: help; }
.fc-day-top.agenda-menstruacao-dia .fc-day-number { color: #c2185b !important; font-weight: bold; }
.planilhaLegendaMenstruacao { display: inline-block; width: 15px; height: 15px; vertical-align: middle; background: repeating-linear-gradient(45deg, rgba(194,24,91,.22) 0 1px, transparent 1px 5px); border: 1px solid #e8a7c4; }
.fc-day-top.agenda-lesao-dia { background: repeating-linear-gradient(45deg, rgba(230,81,0,.25) 0 1px, transparent 1px 5px) !important; cursor: help; }
.fc-day-top.agenda-lesao-dia .fc-day-number { color: #e65100 !important; font-weight: bold; }
/* simbolo da lesao no mensal, aparece mesmo quando a indisponibilidade prevalece na cor */
.fc-day-top.agenda-lesao-dia::before { content: "\f0fa"; font-family: FontAwesome; float: left; font-size: 10px; color: #e65100; padding: 2px 4px; }
/* gráfico da estrutura do treino no pé do evento da planilha mensal (flag Novidades da Planilha) */
.fc-event.planilhaComPerfil { position: relative; max-height: 66px; padding-bottom: 16px; overflow: hidden; }
.planilhaPerfilTreino { position: absolute; left: 2px; right: 2px; bottom: 2px; height: 12px; display: flex; align-items: flex-end; gap: 1px; pointer-events: none; }
.planilhaPerfilTreino span { flex-basis: 0; min-width: 2px; background: rgba(255,255,255,.75); border-radius: 1px 1px 0 0; }
/* Planejado x Realizado: gráfico planejado x feito por passo (card 3817) */
.comparacaoPerfil { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 4px; margin-top: 12px; margin-bottom: 4px; border-bottom: 1px solid #ccc; background: #fafafa; }
.comparacaoPerfilPasso { position: relative; flex-basis: 0; min-width: 4px; height: 100%; }
.comparacaoPerfilPlan, .comparacaoPerfilReal { position: absolute; left: 0; bottom: 0; box-sizing: border-box; border-radius: 2px 2px 0 0; }
.comparacaoPerfilPlan { background: #e3e3e3; border: 1px solid #b5b5b5; }
.comparacaoPerfilReal { opacity: .8; }
.comparacaoPerfil_ok { background-color: #4a9d5f; }
.comparacaoPerfil_leve { background-color: #e0a800; }
.comparacaoPerfil_alto { background-color: #c0392b; }
.comparacaoPerfil_na { background-color: #999; }
.comparacaoPerfilLegenda { font-size: 0.75rem; color: #666; margin-bottom: 8px; }
.comparacaoPerfilCor { display: inline-block; width: 10px; height: 10px; margin: 0 2px 0 8px; vertical-align: middle; border-radius: 2px; }
.comparacaoPerfilCorPlan { background: #e3e3e3; border: 1px solid #b5b5b5; margin-left: 0; }
.planilhaLegendaLesao { display: inline-block; width: 15px; height: 15px; vertical-align: middle; background: repeating-linear-gradient(45deg, rgba(230,81,0,.25) 0 1px, transparent 1px 5px); border: 1px solid #f0b48a; }
.fc-day-top.agenda-indisponivel-dia { background: repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0 1px, transparent 1px 5px) !important; cursor: help; }
.fc-day-top.agenda-indisponivel-dia .fc-day-number { color: #6d5ca3 !important; font-weight: bold; }
.planilhaLegendaIndisponivel { display: inline-block; width: 15px; height: 15px; vertical-align: middle; background: repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0 1px, transparent 1px 5px); border: 1px solid #cccccc; }

/* Faixa do Instagram na tela de Novidades (pages/novidades/formNovidades.xhtml) */
.novidades-insta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #e3e7ec;
    border-radius: 6px;
    background: #fafbfc;
}

.novidades-insta-icone {
    font-size: 28px !important;
    color: #49A2E7;
}

.novidades-insta-texto {
    flex: 1 1 220px;
    color: #333;
    font-size: 13px;
    text-align: left;
}

.novidades-insta-link {
    padding: 6px 14px;
    border: 1px solid #49A2E7;
    border-radius: 4px;
    color: #49A2E7 !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.novidades-insta-link:hover {
    background: #49A2E7;
    color: #fff !important;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fluxo de Caixa (fc*) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.fcFiltros > * { vertical-align: middle; }
.fcScroll { overflow-x: auto; margin-top: 12px; border: 1px solid #e3e6ea; border-radius: 6px; }
.fcTabela { border-collapse: separate; border-spacing: 0; white-space: nowrap; min-width: 100%; font-size: 0.92em; }
.fcTabela th, .fcTabela td { padding: 5px 10px; border-bottom: 1px solid #eeeeee; text-align: right; }
.fcTabela th { background: #f3f5f7; color: #555555; font-weight: bold; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.3px; }
.fcTabela th.fcFixa, .fcTabela td.fcFixa { position: sticky; left: 0; z-index: 1; text-align: left; background: #ffffff; min-width: 190px; box-shadow: 2px 0 0 #e3e6ea; }
.fcTabela th.fcFixa { background: #f3f5f7; }
.fcTabela .fcMesAtual { background: #fffbe6; }
.fcTabela th.fcMesAtual { background: #f7efc8; }
.fcTabela .fcTotal { border-left: 1px solid #e3e6ea; }
.fcTabela tr.fcSECAO td { background: #e9edf2; font-weight: bold; text-transform: uppercase; font-size: 0.85em; color: #444444; }
.fcTabela tr.fcSUBSECAO td { font-weight: bold; color: #555555; }
.fcTabela tr.fcCATEGORIA td.fcFixa { padding-left: 28px; color: #333333; }
.fcTabela tr.fcSUBTOTAL td, .fcTabela tr.fcRESULTADO_MES td { font-weight: bold; border-top: 1px solid #cccccc; }
.fcTabela tr.fcSALDO_INICIAL td, .fcTabela tr.fcSALDO_FINAL td { font-weight: bold; background: #eef4fb; }
.fcTabela tr.fcSALDO_INICIAL td.fcFixa, .fcTabela tr.fcSALDO_FINAL td.fcFixa { background: #eef4fb; }
.fcTabela tr.fcSECAO td.fcFixa { background: #e9edf2; }
.fcTabela tr.fcSALDO_FINAL td { border-top: 2px solid #999999; }
.fcTabela a.fcLink { color: #2a6db0; text-decoration: none; border-bottom: 1px dotted #2a6db0; }
.fcTabela a.fcLink:hover { color: #0d4a8a; }
.fcNota { margin-top: 8px; font-style: italic; color: #777777; font-size: 0.85em; line-height: 1.4; }
.fcDialog .ui-datatable td { font-size: 0.92em; }
@media (max-width: 700px) {
    .fcTabela th.fcFixa, .fcTabela td.fcFixa { min-width: 130px; }
    .fcTabela tr.fcCATEGORIA td.fcFixa { padding-left: 18px; white-space: normal; }
}
.fcLegenda { font-weight: normal; text-transform: none; letter-spacing: 0; font-size: 0.95em; color: #777777; }
.fcLegenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: middle; }
.fcCards .retIndicador { flex: 1 1 170px; }
.fcCards .retIndicadorValor { font-size: 1.35em; white-space: nowrap; }
@media (max-width: 1400px) { .fcCards .retIndicadorValor { font-size: 1.15em; } }

/* Itens extras do cabecalho da planilha (pages/planilha/cabecalhoExtra.xhtml) */
.cabecalhoExtra { border-top: 1px solid #eee; margin-top: 4px; padding-top: 4px; }
.cabecalhoExtra .ui-grid-col { text-align: center; width: 100%; }
.cabecalhoExtraIcone { color: #555; font-size: 1.2em; margin-right: 2px; }
/* Até 4 itens na faixa (PlanilhaMB.isCabecalhoUmaLinha): fixos e extras lado a lado numa linha só */
@media (min-width: 641px) {
    .cabecalhoUmaLinha { display: flex; align-items: center; }
    .cabecalhoUmaLinha > .ui-grid-row { display: contents !important; }
    .cabecalhoUmaLinha .ui-grid-col { flex: 1 1 0; float: none; text-align: center !important; }
}

/* Planilha mensal: coluna Resumo depois do domingo (flag Novidades da Planilha) */
.planilhaComColunaResumo .fc-dayGridMonth-view .fc-row { margin-right: 150px !important; position: relative; overflow: visible; }
.planilhaComColunaResumo .fc-dayGridMonth-view .fc-body .fc-row { min-height: 95px; }
.planilhaComColunaResumo .fc-resumo-semana { position: absolute; top: 0; bottom: 0; left: 100%; width: 150px; box-sizing: border-box; padding: 3px 6px; border: 1px solid #ddd; border-left-width: 2px; background: #fafafa; font-size: 0.75rem; line-height: 1.35; color: #333; overflow: hidden; }
.planilhaComColunaResumo .fc-resumo-titulo { text-align: center; font-weight: bold; background: transparent; border-left-width: 1px; padding-top: 1px; }
.planilhaComColunaResumo .fc-resumo-linha { display: flex; justify-content: space-between; font-weight: bold; margin-top: 2px; }
.planilhaComColunaResumo .fc-resumo-linha:not(:first-child) { margin-top: 12px; } /* linha em branco entre Distância e Tempo */
.planilhaComColunaResumo .fc-resumo-rotulo { color: #555; }
.planilhaComColunaResumo .fc-resumo-vazio { text-align: center; color: #aaa; margin-top: 8px; }
.planilhaComColunaResumo .fc-resumo-evolucao { color: #6c757d; font-size: 0.7rem; }
.planilhaComColunaResumo .fc-resumo-proposto { color: #0095da; }
.planilhaComColunaResumo .fc-resumo-feito { color: #449D44; }

/* Planilha mensal: coluna de Treinos Favoritos arrastáveis (estrela da barra, flag Novidades da Planilha) */
.planilhaFavoritos { flex: 0 0 190px; width: 190px; border: 1px solid #ddd; background: #fafafa; padding: 6px; box-sizing: border-box; font-size: 0.8rem; text-align: left; }
.planilhaFavoritosTitulo { font-weight: bold; text-align: center; margin-bottom: 6px; color: #333; }
.planilhaFavoritosLista { max-height: 70vh; overflow-y: auto; margin-top: 6px; }
.planilhaFavItem { background: #fff; color: #333; border: 1px solid #ccc; border-radius: 3px; padding: 4px 6px; margin-bottom: 4px; cursor: grab; line-height: 1.25; }
.planilhaFavItem:active { cursor: grabbing; }
.planilhaFavItem b { display: block; word-break: break-word; }
.planilhaFavModalidade { font-size: 0.7rem; color: #777; }
.planilhaFavLinha1 { display: flex; align-items: flex-start; gap: 4px; }
.planilhaFavLinha1 b { flex: 1; min-width: 0; }
/* ícone da modalidade (preto transparente) à direita do nome */
.planilhaFavIcone { flex: 0 0 auto; width: 18px; height: 18px; opacity: 0.75; }
.planilhaFavItem:hover { border-color: #0095da; }
.planilhaFavVazio { display: block; color: #777; text-align: center; padding: 8px 2px; }
.planilhaFavDica { color: #999; font-size: 0.7rem; text-align: center; margin-top: 6px; }
/* clone que o FullCalendar arrasta: mesma cara do item, acima do calendário */
.planilhaFavItem.fc-dragging { z-index: 9999; opacity: 0.8; width: 170px; }

/* Dialog do treino, layout novo (dialogTreinoProposta.xhtml: abas Treino / Resultado / Conversa; o treinador escolhe o layout) */
.treinoTitulo { font-size: 1.15rem; font-weight: bold; }
.treinoSub { color: #888; font-weight: normal; margin-left: 8px; font-size: 0.9rem; }
/* status e relógio no título: texto simples depois de um ponto, como o resto do título */
.treinoPill { font-size: 0.9rem; font-weight: normal; color: #888; margin-left: 4px; }
.treinoPill::before { content: '· '; color: #888; }
/* cartões do Resultado (.retIndicador): sem quebrar linha no dialog */
.treinoIndicadores { margin-top: 0; margin-bottom: 8px; }
.treinoIndicadores .retIndicador { flex: 1 1 0; box-sizing: border-box; } /* border-box: o 1/5 de baixo conta padding e borda */
/* métricas extras: largura de 1/5 (alinha com os 5 cartões de cima e não estica quando são poucas) */
.treinoIndicadores.retHomeIndicadores .retIndicador { flex: 0 1 calc((100% - 40px) / 5); }
.treinoIndicadores .retIndicadorValor small { font-size: 0.5em; color: #777777; font-weight: normal; }
.treinoDuas { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.treinoDuas > div { flex: 1; min-width: 0; }
.treinoDuas > div:first-child { flex: 2; } .treinoDuas > div:last-child { flex: 3; } /* mapa 2/5, parciais 3/5 (mesma divisão dos quadros de cima) */
/* gráficos da atividade na aba Resultado (card 3819): mesmos do mapa interativo, abaixo das parciais */
.treinoGraficosBox { margin-top: 14px; border-top: 1px solid #e5e5e5; padding-top: 8px; }
.treinoGraficosTit { font-weight: bold; color: #555; margin-bottom: 4px; }
/* o dialog do treino é fixo na tela: o conteúdo das abas rola dentro dele (título, abas e Salvar sempre à vista) */
#dialogTreinoProposta .ui-tabs-panels { max-height: calc(100vh - 230px); overflow-y: auto; overflow-x: hidden; }
/* rótulos com recuo menor que o padrão (40px): a grade Data/Status/Modalidade cabe inteira nos 860px, com a borda direita (card 3855) */
#dialogTreinoProposta .rotuloAjustado { padding-left: 20px !important; }
/* grade Data/Status/Modalidade sem a linha entre o rótulo e o campo: moldura, divisão entre os pares e entre as linhas */
.treinoDadosGrid { border: 1px solid #dddddd; }
.treinoDadosGrid > tbody > tr, .treinoDadosGrid > tbody > tr > td { border-style: none !important; }
.treinoDadosGrid > tbody > tr > td.campo:not(:last-child) { border-right: 1px solid #dddddd !important; }
.treinoDadosGrid > tbody > tr:not(:last-child) > td { border-bottom: 1px solid #dddddd !important; }
/* filtros de alunos da planilha: rótulos com a mesma largura, campos alinhados */
.filtroAlunosGrid .ui-grid-col-3 { width: 80px !important; }
.filtroAlunosGrid .ui-grid-col-12 { width: calc(100% - 80px) !important; }
/* mapa e gráficos menores que na janela do Mapa: a aba Resultado cabe melhor no notebook (o resto rola) */
#tpGraficosBox .av2-mapa { height: 280px; }
#tpGraficosBox .av2-area { height: 130px; }
/* campo Favorito colado na estrela (linha das abas do layout novo) */
.treinoFavoritoGrupo .ui-autocomplete-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.treinoFavoritoGrupo .ui-button { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.treinoMapaImg { width: 100%; max-height: 190px; object-fit: cover; border-radius: 4px; display: block; }
.treinoMuted { color: #888; }
/* seletor Voltas do relógio | Km a km das parciais (dialog do treino novo e antigo) */
.parciaisSeletor { display: inline-flex; margin-bottom: 6px; }
.parciaisSeletor .ui-button { margin: 0; }
.parciaisSeletor .ui-button + .ui-button { margin-left: -1px; }
.parciaisSeletor .ui-button .ui-button-text { padding: 3px 10px; font-size: 0.85rem; }
/* sub-abas da prescrição (Estruturado, Descritivo...): visual do p:tabView, troca por script */
.treinoSubAbas { margin-top: 12px; }
.treinoSubAbas .ui-tabs-nav li a { cursor: pointer; }
.treinoSubPainel { padding: 8px 4px 4px; }
/* resumo automático da atividade sem a faixa colorida (no dialog é texto, como o resto da aba) */
#tpGraficosBox .av2-resumo-auto { border-left: 0; background: none; padding: 0; }
.treinoMenuMais { width: 250px !important; white-space: nowrap; }
/* contador na aba Conversa: texto entre parênteses (pendente em negrito) */
.treinoBadge { margin-left: 3px; }
.treinoBadge::before { content: '('; } .treinoBadge::after { content: ')'; }
.treinoBadge.treinoNovo { font-weight: bold; }
/* setas do cabeçalho: botões pequenos no padrão do recolher lista de alunos */
.ui-button.treinoNav { width: 26px; height: 24px; margin: 0; vertical-align: middle; } .ui-button.treinoNav .ui-icon { font-size: 14px; } .ui-button.treinoNav:hover { background: #e6e6e6; }
.treinoPill.relogioOk { color: #3c763d; } .treinoPill.relogioNao { color: #b94a48; } .treinoPill.relogioAlt { color: #a86500; }
a.treinoPillLink:hover, a.treinoPillLink:focus { text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) {
    .treinoIndicadores { flex-wrap: wrap; }
    .treinoDuas { flex-direction: column; }
}

/* Planilha: recolher o painel da esquerda (botão « da barra de ícones) */
.planilhaAlunosRecolhidos .planilhaBtnRecolheAlunos .fa { transform: rotate(180deg); }
.planilhaAlunosRecolhidos > .ui-panelgrid-content > .ui-grid-row > .ui-grid-col-4 { display: none; }
.planilhaAlunosRecolhidos > .ui-panelgrid-content > .ui-grid-row > .ui-grid-col-8 { width: 100%; }

/* Planilha: barra de ícones compacta (flag Novidades da Planilha) — « colado à esquerda, X à direita, resto centralizado */
.toolbarPlanilhaCompacta { position: relative; padding-left: 46px !important; padding-right: 46px !important; }
.toolbarPlanilhaCompacta > .ui-toolbar-group-left { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; }
.toolbarPlanilhaCompacta .ui-button { width: 32px !important; margin: 0; }
.toolbarPlanilhaCompacta .ui-separator { margin: 0 1px; }
/* botão com texto (ex.: "Copiar para todos Alunos" da Planilha por Turma) mantém a largura do texto */
.toolbarPlanilhaCompacta .ui-button.ui-button-text-icon-left { width: auto !important; }
.toolbarPlanilhaCompacta .planilhaBtnRecolheAlunos, .toolbarPlanilhaCompacta .planilhaBtnFechar { position: absolute; top: 50%; margin-top: -14px; }
.toolbarPlanilhaCompacta .planilhaBtnRecolheAlunos { left: 6px; }
/* estrela dos Treinos Favoritos colada à direita do « (só na barra mensal); abre espaço só quando ela existe */
.toolbarPlanilhaCompacta .planilhaBtnFavoritos { position: absolute; top: 50%; margin-top: -14px; left: 42px; }
.toolbarPlanilhaCompacta:has(.planilhaBtnFavoritos) { padding-left: 82px !important; }
.toolbarPlanilhaCompacta .planilhaBtnFechar { right: 6px; }
/* botão da coluna Resumo colado à esquerda do X (só na barra mensal); abre espaço só quando ele existe */
.toolbarPlanilhaCompacta .planilhaBtnResumo { position: absolute; top: 50%; margin-top: -14px; right: 42px; }
.toolbarPlanilhaCompacta:has(.planilhaBtnResumo) { padding-right: 82px !important; }
.toolbarPlanilhaCompacta .planilhaBtnFechar .ui-button-text { padding-left: 0 !important; padding-right: 0 !important; text-align: center; }
.toolbarPlanilhaCompacta .planilhaSepRecolhe { display: none !important; }
/* regra separada: navegador sem :has() descarta a regra inteira */
.toolbarPlanilhaCompacta .ui-separator:has(+ .planilhaBtnFechar) { display: none !important; }
.toolbarPlanilhaCompacta .ui-separator:has(+ .planilhaBtnResumo) { display: none !important; }
/* cabeçalho do aluno (indicadores, teste, RP, financeiro...) com botões menores, junto com a barra compacta */
.cabecalhoCompacto .ui-button { width: 28px !important; height: 24px; }
.cabecalhoCompacto .ui-button .ui-icon { margin-top: -8px; }
/* coluna Resumo: total do mês numa linha só embaixo de toda a planilha, semana de hoje destacada e setas de mês ao lado do título */
.planilhaComColunaResumo .fc-resumo-total { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; padding: 6px 10px; border-top: 2px solid #0095da; background: #eef7fc; font-size: 0.85rem; color: #333; }
.planilhaComColunaResumo .fc-resumo-total > div { display: inline-block; } /* título, rótulos e valores lado a lado */
.planilhaComColunaResumo .fc-resumo-total .fc-resumo-linha { margin: 0 0 0 14px; }
.planilhaComColunaResumo .fc-resumo-total .fc-resumo-rotulo::after { content: ":"; }
.planilhaComColunaResumo .fc-resumo-total-titulo { font-weight: bold; color: #0095da; }
.planilhaComColunaResumo .fc-row.fc-semana-atual { outline: 2px solid #0095da; outline-offset: -2px; z-index: 3; }
.planilhaComColunaResumo .fc-semana-atual > .fc-resumo-semana { background: #eef7fc; border-color: #0095da; }
.planilhaComColunaResumo .fc-toolbar .fc-right { display: flex; align-items: center; gap: 12px; }
.planilhaComColunaResumo .fc-toolbar .fc-right > * { margin: 0 !important; } /* o FullCalendar põe margem nos itens depois do 1o */
.planilhaComColunaResumo .planilhaSetaMes { border: 1px solid #ccc; background: #fff; border-radius: 3px; padding: 2px 10px; cursor: pointer; color: #555; }
.planilhaComColunaResumo .planilhaSetaMes:hover { background: #f0f0f0; }
/* coluna Resumo escondida pelas Configurações da Planilha (o total do mês embaixo continua) */
.planilhaComColunaResumo.planilhaResumoOculto .fc-dayGridMonth-view .fc-row { margin-right: 0 !important; }
.planilhaComColunaResumo.planilhaResumoOculto .fc-resumo-semana { display: none; }
/* coluna Resumo: copiar / colar a semana (canto de baixo da célula) */
.planilhaComColunaResumo .fc-resumo-acoes { text-align: right; margin-top: 4px; }
.planilhaComColunaResumo .fc-resumo-acoes button { border: 1px solid #ccc; background: #fff; border-radius: 3px; padding: 1px 6px; margin-left: 3px; cursor: pointer; color: #555; font-size: 0.75rem; }
.planilhaComColunaResumo .fc-resumo-acoes button:hover { background: #0095da; border-color: #0095da; color: #fff; }
/* cadeado da semana: mesmas cores do TRANCADA / LIBERADA do quadro do mês */
.planilhaComColunaResumo .fc-resumo-acoes button.fc-resumo-trancada { color: #D9534F; }
.planilhaComColunaResumo .fc-resumo-acoes button.fc-resumo-liberada { color: #449D44; }
.planilhaComColunaResumo .fc-resumo-acoes button.fc-resumo-trancada:hover,
.planilhaComColunaResumo .fc-resumo-acoes button.fc-resumo-liberada:hover { color: #fff; }
/* IA SisRUN sugere a semana: R piscando no número da segunda (planilhaMensal.js) */
.planilhaIaSemana { float: left; border: 0; background: transparent; padding: 0 2px; cursor: pointer; line-height: 0; animation: planilhaIaPisca 1.6s infinite ease-in-out; }
.planilhaIaSemana:hover { animation: none; transform: scale(1.15); }
@keyframes planilhaIaPisca { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.9); } }

/* Modelo de Planilha: grade semanal (gradeModeloPlanilha.xhtml). Resumo, total e ações da semana reusam os .fc-resumo-*
   da mensal pelo .planilhaComColunaResumo do wrapper; a coluna de favoritos reusa os .planilhaFav* */
.modeloGradeArea { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin-top: 10px; }
.modeloGradeWrap { flex: 1; min-width: 0; overflow-x: auto; }
.modeloGrade { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.modeloGrade th, .modeloGrade td { border: 1px solid #ddd; }
.modeloGrade th { padding: 6px; color: #555; background: #f5f5f5; }
.modeloGradeColSemana { width: 60px; }
.modeloGradeColResumo { width: 150px; }
.modeloGradeSemana { text-align: center; font-weight: bold; color: #555; background: #fafafa; }
.modeloGradeDia { padding: 3px; vertical-align: top; height: 60px; }
.modeloGradeEditavel .modeloGradeDia { cursor: pointer; }
.modeloGradeEditavel .modeloGradeDia:hover { background: #fafafa; }
.modeloGradeEditavel .modeloGradeDia.modeloGradeAlvo { background: #eef7fc; outline: 2px dashed #0095da; outline-offset: -2px; }
.modeloGradeCard { position: relative; color: #212121; border: 1px solid; border-radius: 3px; padding: 3px 5px; margin-bottom: 3px; line-height: 1.3; }
.modeloGradeCard > b, .modeloGradeCard > div { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modeloGradeEditavel .modeloGradeCard { cursor: grab; }
.modeloGradeEditavel .modeloGradeCard:hover { border-color: #0095da !important; }
.modeloGradeCard.modeloGradeComPerfil { padding-bottom: 16px; }
.modeloGradeCard .planilhaPerfilTreino span { background: rgba(0,0,0,.28); } /* card claro (cor da modalidade): barra escura */
.modeloGradeCard .modeloGradeExcluir { display: none; position: absolute; top: 2px; right: 4px; color: #D9534F; cursor: pointer; }
.modeloGradeCard:hover .modeloGradeExcluir { display: inline; }
td.modeloGradeResumo { padding: 3px 6px; vertical-align: top; border-left-width: 2px; background: #fafafa; font-size: 0.75rem; line-height: 1.35; color: #333; }
.modeloGradeResumo .fc-resumo-acoes button { padding: 1px 4px; } /* 5 botões (com Colar) numa linha só */
.modeloGrade tfoot td { padding: 0; border: 0; }
.modeloGradeLegenda { text-align: center; margin-top: 10px; }

/* quadro Plano SisRUN na home: coluna do rótulo sem quebrar "Data de Vencimento" / "Limite de Alunos" */
.rotuloPlanoSisRun { width: 34% !important; white-space: nowrap; }
/* card de renovação do plano SisRUN na home (autoatendimento): cabeçalho azul; vermelho com <= 3 dias ou vencido */
.cardRenovacao > .ui-panel-titlebar { background: #e8f4fd !important; color: #1f5f8b !important; border-color: #c5def2 !important; }
.cardRenovacao { border-color: #c5def2 !important; }
.cardRenovacaoUrgente > .ui-panel-titlebar { background: #f2dede !important; color: #b94a48 !important; border-color: #ebccd1 !important; }
.cardRenovacaoUrgente { border-color: #ebccd1 !important; }

/* Texto explicativo em cima dos gráficos gerenciais (Saldo das Contas, Integração com Site) */
.graficoExplica {margin: 4px 0 10px 0; color: #555; font-size: 13px; line-height: 1.45}
.graficoExplica b {color: #333}

/* Páginas de ajuda das novidades (pages/ajuda): texto de leitura com prints */
.ajuda { font-size: 14px; line-height: 1.6; color: #333; text-align: left; padding: 4px 10px 10px 10px; }
.ajuda h3 { font-size: 17px; color: #1a4f8b; margin: 26px 0 6px 0; padding-bottom: 4px; border-bottom: 1px solid #dde6ef; }
.ajuda p { margin: 6px 0; }
.ajuda ul, .ajuda ol { margin: 6px 0 8px 0; padding-left: 22px; }
.ajuda li { margin: 3px 0; }
.ajudaQuadro { background: #f8f8f8; border-radius: 8px; padding: 10px 14px; margin: 10px 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.ajudaQuadro > i { color: #1a4f8b; margin-right: 6px; }
.ajudaDica { background: #fff8e1; border-left: 4px solid #f0ad4e; border-radius: 4px; padding: 8px 12px; margin: 10px 0; }
.ajudaIndice { columns: 2; }
.ajudaIndice a { color: #1a4f8b; }
.ajudaPrint { display: block; max-width: min(100%, 720px); margin: 10px auto; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ajudaLegenda { text-align: center; color: #777; font-size: 12px; margin-top: -4px; }
.ajudaCelulares { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0; }
.ajudaCelulares > div { width: 190px; text-align: center; font-size: 12px; color: #555; }
.ajudaCelulares img { width: 190px; border: 1px solid #ccc; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ajudaTabela { border-collapse: collapse; width: 100%; margin: 8px 0; }
.ajudaTabela th, .ajudaTabela td { border: 1px solid #dde6ef; padding: 6px 9px; vertical-align: top; text-align: left; }
.ajudaTabela th { background: #eef4fa; color: #1a4f8b; }

/* Musculação: etiqueta do bi-set/tri-set (grupo) e tabela de séries diferentes (seriesMusculacao.js) */
.grupoMusculacao { display: inline-block; min-width: 14px; padding: 0 4px; margin-right: 4px; border-radius: 3px; background: #0095da; color: #fff; font-size: 0.75rem; font-weight: bold; text-align: center; }
.ajudaMusculacao { color: #888; font-size: 0.8rem; margin-left: 8px; }
.seriesMusculacao table { border-collapse: collapse; margin-top: 4px; }
.seriesMusculacao th { font-weight: normal; color: #666; text-align: left; padding: 2px 6px; }
.seriesMusculacao td { padding: 2px 6px; }
.seriesMusculacao input[type=text] { width: 70px; }

/* Musculação nova (montaMusculacao.js): catálogo à esquerda, treino à direita. Alturas pela janela: cabe em notebook (1366x768) */
.mmw { display: flex; gap: 16px; align-items: flex-start; }
.mmw-carregando { padding: 30px; text-align: center; color: #777; }
.mmw-esq { width: clamp(300px, 36%, 384px); flex: none; position: relative; }
.mmw [hidden] { display: none !important; }
.mmw-sem-corpo .mmw-lista { height: clamp(220px, calc(100vh - 480px), 480px); }
/* painéis Exercícios | Ficha do Treino (p:panel) e a dica entre o filtro e a lista */
.mmw-painel .ui-panel-content { padding: 6px; }
.mmw-painel .ui-panel-titlebar { text-align: center; padding: 4px; }
.mmw-thumb-box { position: relative; flex: none; display: inline-flex; cursor: zoom-in; }
.mmw-thumb-box .fa-play { position: absolute; right: 2px; bottom: 2px; font-size: 9px; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 50%; width: 15px; height: 15px; line-height: 15px; text-align: center; padding-left: 1px; box-sizing: border-box; }
.mmw-thumb-box:hover .fa-play { background: #0095da; }
.mmw-previa { position: absolute; left: 0; right: 0; top: 0; z-index: 5; background: #fff; border: 1px solid #d5d9dc; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); padding: 8px; }
.mmw-previa-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mmw-previa-cab b { flex: 1; font-size: 0.9rem; }
.mmw-previa-cab a { color: #90a4ae; cursor: pointer; font-size: 1.1rem; }
.mmw-previa-midia video, .mmw-previa-midia iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 4px; background: #eceff1; display: block; object-fit: contain; }
.mmw-previa-pe { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mmw-previa-pe small { flex: 1; color: #777; }
.mmw-rodape { padding: 8px; font-size: 0.78rem; }
.mmw-cadastrar { color: #0095da; }
.mmw-dir { flex: 1; min-width: 0; }
.mmw-corpo-box { display: flex; gap: 8px; align-items: center; margin: 8px 0 6px; }
.mmw-corpo { width: 170px; flex: none; }
.mmw-corpo .mm-mapa { display: flex; justify-content: center; gap: 2px; }
.mmw-corpo .mm-svg { flex: 1 1 0; min-width: 0; height: 180px; display: block; }
.mmw-corpo .mm-corpo { fill: var(--mm-corpo); }
.mmw-corpo .mm-musculo { fill: var(--mm-base); stroke: var(--mm-contorno); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; outline: none; transition: fill .2s; }
.mmw-corpo .mm-musculo:hover { fill: #ffab91; }
.mmw-corpo .mm-musculo.mm-ativo { fill: color-mix(in oklab, var(--mm-alto) calc(var(--i) * 1%), var(--mm-baixo)); }
.mmw-corpo .mm-musculo.mm-selecionado, .mmw-corpo .mm-musculo:focus-visible { stroke: var(--mm-selecao); stroke-width: 10; }
.mmw-lista { height: clamp(150px, calc(100vh - 670px), 340px); overflow-y: auto; border-top: 1px solid #eee; }
.mmw-thumb { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; flex: none; background: #eceff1; }
.mmw-sem { display: inline-flex; align-items: center; justify-content: center; color: #90a4ae; font-weight: bold; }
.mmw-item-txt { min-width: 0; line-height: 1.2; }
.mmw-item-txt b { display: block; font-weight: 600; font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmw-item-txt small { color: #8a8f93; font-size: 0.74rem; }
.mmw-vazio { padding: 12px; color: #888; text-align: center; font-size: 0.85rem; }
.mmw-series-treino { text-align: right; font-size: 0.8rem; margin-top: 4px; }
.mmw-series-treino:empty { display: none; }
.mmw-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; min-height: 30px; }
.mmw-treino { max-height: clamp(220px, calc(100vh - 410px), 600px); overflow-y: auto; }
.mmw-ex { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mmw-set { color: #ef6c00; font-weight: 600; margin-right: 5px; }
/* tipos com o visual do p:selectOneButton (botões colados); músculos com o botão do PrimeFaces, um ao lado do outro */
.mmw .mmw-tipos { display: flex; flex-wrap: nowrap; margin-bottom: 6px; }
.mmw-tipos .ui-button { flex: 1 1 auto; min-width: 0; margin: 0 -1px 0 0; border-radius: 0; }
.mmw-tipos .ui-button:first-child { border-radius: 3px 0 0 3px; } .mmw-tipos .ui-button:last-child { border-radius: 0 3px 3px 0; margin-right: 0; }
.mmw .mmw-tipos .ui-button.ui-button-text-only .ui-button-text { padding: 3px 2px; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmw .mmw-chips .ui-button.ui-button-text-only .ui-button-text { padding: 2px 7px; font-size: 0.75rem; white-space: nowrap; }
/* Equipamento e Origem (3989) ao lado da busca; janela estreita: quebram para a linha de baixo em vez de espremer a busca */
.mmw-busca { display: flex; flex-wrap: wrap; gap: 6px; }
.mmw-busca input { flex: 3 1 160px; min-width: 0; }
.mmw-busca .mmw-combo { flex: 1 1 110px; width: auto; }
.mmw-chips { display: flex; flex-wrap: wrap; gap: 3px; align-content: center; }
.mmw-chip.ui-button { margin: 0; }
/* catálogo: linhas zebradas como as grids, botão + igual ao do sistema */
.mmw-lista { border: 1px solid #ddd; }
.mmw-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-bottom: 1px solid #ddd; cursor: pointer; }
.mmw-item:nth-child(even) { background: #f9f9f9; }
.mmw-item:hover { background: #eef7fc; }
.mmw-item .mmw-add { margin-left: auto; flex: none; }
.mmw-item .mmw-ja { color: #5cb85c; margin-left: auto; }
.mmw-item .mmw-ja + .mmw-add { margin-left: 6px; }
.mmw-cab .mmw-combo { width: 200px; }
/* combo no visual do p:selectOneMenu: o select nativo invisível cobre tudo e abre a lista */
.mmw-combo { position: relative; display: inline-block; vertical-align: middle; flex: none; }
.mmw-combo label { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mmw-combo select { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mmw-treino .ui-datatable-footer { padding: 4px 8px; text-align: right; font-size: 0.85rem; }
/* rodapé da ficha: legenda dos botões à esquerda, resumo à direita; série vazia em vermelho */
.mmw-rodape-ficha { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.mmw-legenda { display: flex; flex-wrap: wrap; gap: 2px 10px; font-weight: normal; color: #666; font-size: 0.78rem; }
.mmw-legenda .fa { width: 14px; text-align: center; }
.mmw-l-info { color: #5bc0de; } .mmw-l-danger { color: #d9534f; } .mmw-l-warning { color: #f0ad4e; } .mmw-l-primary { color: #337ab7; }
.mmw-falta { color: #c62828; }
.mmw-treino input.mmw-erro { border-color: #d9534f; background: #fdecea; }
/* nome do exercício na ficha em até 2 linhas (não corta "Supino R…") */
.mmw-treino .mmw-item-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: 0.78rem; }
.mmw-todos { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; }
.mmw-todos input { width: 80px; }
.mmw-todos input[type=number] { width: 60px; }
/* treino: tabela com as classes do p:dataTable (o tema desenha cabeçalho, bordas e zebrado) */
.mmw-treino { max-height: clamp(220px, calc(100vh - 370px), 600px); overflow-y: auto; }
.mmw-treino table { width: 100%; table-layout: fixed; }
.mmw-treino th { text-align: center; }
.mmw-treino th.mmw-c1 { text-align: left; }
.mmw-c0 { width: 30px; } .mmw-c2 { width: 44px; } .mmw-c3 { width: 76px; } .mmw-c4 { width: 58px; } .mmw-c5 { width: 62px; } .mmw-c6 { width: 168px; } /* 5 botões (com o Trocar) + arrastar */
/* Trocar (3988): linha esperando o exercício novo do catálogo */
.mmw-linha.mmw-trocando > tr:first-child > td { background: #fff3cd; }
.mmw-treino .ui-datatable thead th, .mmw-treino .ui-datatable tbody td { padding: 4px; vertical-align: middle; }
.mmw-treino .mmw-ex .mmw-item-txt { overflow: hidden; }
.mmw-treino .mmw-item-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmw-treino td input { width: 100%; box-sizing: border-box; }
.mmw-num { text-align: center; }
.mmw-sem-carga { text-align: center; color: #b0bec5; }
.mmw-linha.mmw-comb > tr > td:first-child { box-shadow: inset 3px 0 0 #ef6c00; }
.mmw-linha.mmw-nova td { animation: mmwNova 1.2s ease-out; }
@keyframes mmwNova { from { background: #fff3cd; } }
.mmw-linha.mmw-arrastando { opacity: .4; }
.mmw-linha.mmw-alvo > tr:first-child > td { border-top: 2px solid #0095da; }
.mmw-acoes { text-align: center; white-space: nowrap; }
.mmw-acoes .ui-button, .mmw-acoes .mmw-vago { margin: 0 1px; }
.mmw-acoes .ui-button.ui-button-icon-only { width: 26px; }
.mmw-acoes .mmw-vago { display: inline-block; width: 26px; }
.mmw-acoes .btn.active { box-shadow: inset 0 3px 5px rgba(0, 0, 0, .35); }
.mmw-arrasta { font-size: larger; cursor: move; margin-left: 3px; vertical-align: middle; }
.mmw-linha input[readonly] { cursor: pointer; color: #6d4c41; background: #fbf3ee; }
.mmw-pir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: #fbf3ee; border-radius: 4px; font-size: 0.8rem; }
.mmw-pir-tit { color: #6d4c41; font-weight: 600; margin-right: 2px; }
.mmw-pir-serie { display: inline-flex; align-items: center; gap: 3px; }
.mmw-pir-serie b { color: #8d6e63; font-weight: 600; }
.mmw-treino .mmw-pir input { width: 64px; background: #fff; border-color: #e0d3cb; }
.mmw-pir a { color: #8d6e63; cursor: pointer; padding: 0 3px; }
.mmw-pir a:hover { color: #0095da; }
.mmw-pir .mmw-pir-tira { margin-left: auto; text-decoration: underline; }
.mmw-aviso { font-size: 0.78rem; color: #2e7d32; background: #e8f5e9; border-radius: 10px; padding: 1px 8px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* notebook (janela baixa): corpo e botões menores, sobra uma linha a mais na lista */
@media (max-height: 720px) {
    .mmw-corpo { width: 130px; }
    .mmw-corpo .mm-svg { height: 136px; }
    .mmw-chip .ui-button-text { padding: 1px 4px; font-size: 0.72rem; }
    .mmw-corpo-box { margin: 5px 0 4px; }
}
/* Cadastro de Exercícios: miniatura (mesma da montagem do treino) e músculo · equipamento embaixo do nome */
.exLista-thumb { width: 48px; height: 36px; font-size: 1rem; }
.exLista-sub { display: block; color: #8a8f93; font-size: 0.8rem; }
/* Primeiros passos (pages/primeirosPassos): 3 passos em cartões, passo da vez em destaque, Explore mais discreto.
   Situação sempre com ícone + texto (a cor nunca é a única pista). */
.ppPainel { width: 72%; max-width: 980px; }
.ppCabecalho { text-align: left; margin: 4px 4px 14px 4px; }
.ppTitulo { font-size: 1.6em; color: #1a4f8b; margin: 4px 0 2px 0; }
.ppSubtitulo { color: #444444; margin: 0 0 10px 0; font-size: 1.05em; }
.ppProgresso { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ppProgressoTexto { font-weight: bold; color: #333333; }
.ppBarra { flex: 1 1 180px; max-width: 320px; height: 10px; background: #e4e7eb; border-radius: 5px; overflow: hidden; }
.ppBarraValor { height: 100%; background: #449d44; border-radius: 5px; transition: width 0.3s; }
.ppPasso { display: flex; gap: 14px; text-align: left; background: #ffffff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 14px 16px; margin: 0 4px 12px 4px; }
.ppPassoAtual { border: 2px solid #1a4f8b; box-shadow: 0 2px 8px rgba(26,79,139,0.12); }
.ppPassoNumero { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #1a4f8b; color: #ffffff; font-weight: bold; font-size: 1.1em; display: flex; align-items: center; justify-content: center; }
.ppPassoCONCLUIDO .ppPassoNumero, .ppPassoNAO_SE_APLICA .ppPassoNumero { background: #3d8b3d; }
.ppPassoBLOQUEADO .ppPassoNumero, .ppPassoADIADO .ppPassoNumero { background: #8a8f93; }
.ppPassoBLOQUEADO { background: #fafafa; }
.ppPassoCorpo { flex: 1 1 auto; min-width: 0; }
.ppPassoTopo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ppPassoTopo h3 { margin: 4px 0; font-size: 1.15em; color: #222222; }
.ppSituacao { font-size: 0.85em; font-weight: bold; padding: 3px 10px; border-radius: 12px; background: #eef1f4; color: #444444; white-space: nowrap; }
.ppPassoCONCLUIDO .ppSituacao { background: #dff0d8; color: #2b632b; }
.ppPassoEM_ANDAMENTO .ppSituacao, .ppPassoAGUARDANDO_CADASTRO .ppSituacao, .ppPassoAGUARDANDO_APROVACAO .ppSituacao { background: #fff3cd; color: #6b4e00; }
.ppPassoADIADO .ppSituacao, .ppPassoNAO_SE_APLICA .ppSituacao { background: #e9ecef; color: #3f4448; }
.ppPassoBLOQUEADO .ppSituacao { background: #f1f1f1; color: #5f6368; }
.ppTexto { margin: 6px 0; color: #333333; line-height: 1.5; }
.ppTextoApagado { color: #666666; }
.ppAcoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ppAcoes .ui-button, .ppFinalAcoes .ui-button, .ppTroca .ui-button, .ppDialogo .toolbarPadrao .ui-button { margin: 0; width: auto; min-width: 100px; white-space: nowrap; }
.ppLink { color: #1a4f8b !important; text-decoration: underline; margin-left: 6px; cursor: pointer; }
.ppLinkWhats { margin-left: 14px; }
.ppSecundario.ui-button { background: #ffffff; color: #1a4f8b; border: 1px solid #1a4f8b; text-shadow: none; }
.ppSecundario.ui-button:hover { background: #eef4fb; }
.ppAguardando { background: #fff8e1; border-left: 4px solid #f0ad4e; border-radius: 4px; padding: 8px 12px; margin: 8px 0; color: #4d3b00; }
.ppPreCadastro { margin-top: 6px; }
.ppSemPermissao { color: #555555; font-style: italic; margin-top: 6px; }
.ppAlunoContexto { text-align: left; background: #eef4fb; border: 1px solid #c5def2; border-radius: 8px; padding: 8px 12px; margin: 0 4px 12px 4px; color: #1f3f63; }
.ppTroca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-align: left; background: #f8f8f8; border-radius: 8px; padding: 10px 12px; margin: 0 4px 12px 4px; }
.ppFinal { display: flex; gap: 12px; text-align: left; background: #dff0d8; border: 1px solid #b8dcb0; border-radius: 10px; padding: 12px 16px; margin: 0 4px 14px 4px; color: #234d23; }
.ppFinal > i { font-size: 1.8em; color: #3d8b3d; }
.ppFinalPendente { background: #fff8e1; border-color: #ffe082; color: #4d3b00; }
.ppFinalPendente > i { color: #c58f00; }
.ppFinalAcoes { margin-top: 8px; }
.ppDica { color: #555555; font-size: 0.9em; margin-top: 4px; }
.ppLinkJunto { margin-left: 0; }
.ppFunilCards { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.ppFunilCard { flex: 1 1 120px; border: 1px solid #e5e5e5; border-top: 4px solid #1a4f8b; border-radius: 4px; padding: 8px 12px; background: #ffffff; text-align: left; }
.ppFunilCard b { display: block; font-size: 26px; line-height: 1.2; }
.ppFunilCard span { font-size: 12px; color: #666666; }
.ppFunilCardFinal { border-top-color: #3d8b3d; }
.ppFunilMarco { display: inline-block; font-size: 12px; color: #8a8f93; margin-right: 10px; }
.ppFunilFeito { color: #2b632b; font-weight: bold; }
.ppSeparador { color: #b0b5ba; margin: 0 8px; }
/* Quadro "Primeiros passos" da home */
.ppGuiaHome { text-align: left; padding: 2px 6px; }
.ppGuiaTitulo { font-size: 1.15em; font-weight: bold; color: #1a4f8b; margin-bottom: 4px; }
.ppGuiaTitulo > i { margin-right: 4px; }
.ppGuiaConcluido, .ppGuiaConcluido > i { color: #2b632b; }
.ppGuiaTexto { color: #444444; margin: 4px 0; line-height: 1.45; }
.ppGuiaProgresso { margin: 8px 0; }
.ppGuiaHome .ppGuiaBotao.ui-button { margin: 8px 0 4px 0; width: auto; min-width: 200px; }
.ppGuiaLinks { text-align: left; font-size: 0.9em; margin: 8px 6px 0 6px; padding-top: 8px; border-top: 1px solid #e3e6ea; }
.ppGuiaLinks a { color: #1a4f8b; }
.ppMarco { display: flex; gap: 12px; text-align: left; background: #f5f8fb; border: 1px dashed #c5def2; border-radius: 10px; padding: 12px 16px; margin: 0 4px 12px 4px; color: #1f3f63; line-height: 1.5; }
.ppMarco > i { font-size: 1.6em; color: #1a4f8b; margin-top: 2px; }
.ppMarcoFeito { background: #dff0d8; border: 1px solid #b8dcb0; color: #234d23; }
.ppMarcoFeito > i { color: #3d8b3d; }
.ppPrevia { border: 1px solid #e3e6ea; border-radius: 14px; overflow: hidden; background: #f4f6f8; }
.ppPreviaTopo { background: #1a4f8b; color: #ffffff; padding: 8px 12px; font-size: 0.95em; }
.ppPreviaTopo > i { font-size: 1.3em; margin-right: 4px; vertical-align: -2px; }
.ppPreviaTreino { display: flex; gap: 10px; background: #ffffff; margin: 8px; padding: 8px 10px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.ppPreviaTrancado { opacity: 0.75; }
.ppPreviaDia { flex: 0 0 64px; font-weight: bold; color: #1a4f8b; font-size: 0.9em; }
.ppPreviaCorpo { flex: 1 1 auto; min-width: 0; color: #333333; font-size: 0.92em; }
.ppPreviaDescricao { color: #555555; margin-top: 2px; white-space: pre-line; }
.ppPrevia > .ppTexto { padding: 8px 12px; }
.ppDialogo .ui-dialog-content { text-align: left; }
.ppProximos { text-align: left; margin: 20px 4px 4px 4px; padding-top: 12px; border-top: 1px solid #e3e6ea; }
.ppProximosTopo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ppProximosTitulo { font-size: 1.1em; color: #222222; margin: 0; }
.ppProximosConta { font-size: 0.85em; font-weight: bold; color: #444444; }
.ppProximosDica { margin: 2px 0 8px 0; }
.ppProximo { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #e3e6ea; border-radius: 8px; margin-bottom: 6px; background: #ffffff; }
.ppProximoIcone { flex: 0 0 22px; font-size: 1.25em; color: #1a4f8b; text-align: center; }
.ppProximoCorpo { flex: 1 1 auto; min-width: 0; color: #333333; line-height: 1.35; }
.ppProximoTexto { display: block; color: #555555; font-size: 0.9em; }
.ppProximoLink { margin-left: 0; white-space: nowrap; }
.ppProximoFeito { background: #f6fbf5; }
.ppProximoFeito .ppProximoIcone { color: #3d8b3d; }
.ppProximoSituacao { background: #dff0d8; color: #2b632b; }
.ppExemplos { display: flex; gap: 10px; text-align: left; background: #eef4fb; border: 1px solid #c5def2; border-radius: 8px; padding: 8px 12px; margin: 0 4px 12px 4px; color: #1f3f63; line-height: 1.45; }
.ppExemplos > i { color: #1a4f8b; margin-top: 3px; }
/* Primeiros passos no lado direito da barra de menu (facet options do menubar): mesmo texto dos itens; em destaque enquanto pendentes */
.ui-menubar .ui-menubar-options .menuPrimeirosPassos { display: inline-block; padding: 4px 12px; color: #333333; text-decoration: none; border-radius: 4px; }
.ui-menubar .ui-menubar-options .menuPrimeirosPassos:hover, .ui-menubar .ui-menubar-options .menuPrimeirosPassos:focus { background: #eef4fb; }
.ui-menubar .ui-menubar-options .menuPrimeirosPassos > i { color: #1a4f8b; }
.ui-menubar .ui-menubar-options .menuPrimeirosPassosPendente { font-weight: bold; color: #1a4f8b; background: #eef4fb; border: 1px solid #c5def2; }
.ppPasso a:focus, .ppProximo a:focus, .ppLink:focus { outline: 2px solid #1a4f8b; outline-offset: 2px; }
@media (max-width: 1100px) { .ppPainel { width: 92%; } }
@media (max-width: 700px) {
    .ppPainel { width: 98%; }
    .ppPasso { padding: 12px; gap: 10px; }
    .ppPassoNumero { flex-basis: 28px; width: 28px; height: 28px; font-size: 1em; }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Avaliação Física V2: aba Resumo (cartões reaproveitam .retIndicador) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.resumoCartao { flex: 1 1 150px; max-width: 220px; }
.resumoCartao .retIndicadorValor small { font-size: 0.5em; color: #777777; font-weight: normal; }
.resumoDelta { display: block; color: #607D8B; font-size: 0.85em; font-weight: bold; min-height: 1.2em; margin-top: 2px; }
.resumoDetalhe { display: block; color: #999999; font-size: 0.8em; }
.resumoLegenda { color: #777777; font-size: 0.85em; margin: 6px 0 4px 0; }

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Avaliação Física V2: análise postural (aba Fotos + dialogPostura) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.pcDicaInline { color: #777777; font-size: 0.9em; margin-left: 8px; }
.posturaCards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; text-align: left; }
.posturaCard { flex: 1 1 220px; max-width: 300px; background: #ffffff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px; min-width: 0; }
.posturaCardTitulo { font-weight: bold; color: #555555; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.posturaCardImg { width: 100%; height: auto; border-radius: 6px; display: block; }
.posturaResultados { margin: 8px 0 0 0; padding: 0 0 0 16px; font-size: 0.85em; color: #333333; }
.posturaObs { color: #666666; font-size: 0.85em; margin-top: 6px; white-space: pre-line; }
.posturaOculta { display: inline-block; margin-top: 6px; font-size: 0.8em; color: #c58f00; }
.posturaCardAcoes { margin-top: 8px; }
.pcEditor { display: flex; gap: 14px; align-items: flex-start; }
.pcColunaCanvas { flex: 0 0 620px; }
.pcColunaLado { flex: 1 1 300px; min-width: 0; }
.pcFerramentas { display: flex; flex-wrap: nowrap; gap: 3px; align-items: center; margin-bottom: 6px; }
.pcFerramentas .btn { padding: 4px 6px; font-size: 12px; white-space: nowrap; }
.pcFerramentas .pcBotaoAtivo { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15); }
.pcSep { display: inline-block; width: 1px; height: 22px; background: #d5dfe8; margin: 0 4px; }
.pcDica { color: #777777; font-size: 0.85em; margin: 4px 0; min-height: 1.2em; }
.pcCanvasBox { position: relative; display: inline-block; border: 1px solid #d5dfe8; border-radius: 4px; overflow: hidden; }
#pcCanvas { display: block; background: #f4f4f4; }
.pcTextoInput { position: absolute; font: bold 12px Arial; padding: 2px 4px; border: 1px solid #2e7d32; border-radius: 3px; width: 160px; } /* sem z-index proprio: o modal do PrimeFaces descarta teclas de elementos com z-index menor que o do dialog */
.pcTitulo { font-weight: bold; color: #555555; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; margin: 10px 0 4px 0; }
.pcSelect { width: 100%; padding: 4px; border: 1px solid #c8c8c8; border-radius: 3px; }
.pcMiniaturas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pcMini { width: 64px; height: 84px; object-fit: cover; border: 2px solid #e3e6ea; border-radius: 4px; cursor: pointer; }
.pcMini.pcMiniAtiva { border-color: #0095da; box-shadow: 0 0 0 2px rgba(0,149,218,0.25); }
.pcLista { max-height: 220px; overflow-y: auto; border: 1px solid #e3e6ea; border-radius: 4px; padding: 4px; }
.pcItem { display: flex; align-items: center; gap: 6px; padding: 3px 2px; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.pcItem input { flex: 0 0 110px; font-size: 12px; padding: 2px 4px; border: 1px solid #d5dfe8; border-radius: 3px; }
.pcItem .pcValor { flex: 1 1 auto; color: #333333; }
.pcItem a { color: #c0392b; }
.pcCor { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: 0 0 10px; }
.pcVazio { color: #888888; font-size: 12px; padding: 4px 2px; }
.pcObs { width: 100%; box-sizing: border-box; font-size: 12px; padding: 4px; border: 1px solid #c8c8c8; border-radius: 3px; resize: vertical; }
.pcCheck { display: block; margin: 6px 0; font-size: 12px; color: #333333; }
.pcAviso { color: #0095da; font-size: 12px; min-height: 1.2em; margin: 4px 0; }
.pcAcoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pcComparar { display: flex; gap: 14px; align-items: flex-start; }
.pcCompItem { flex: 1 1 0; min-width: 0; background: #ffffff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px; }
.pcCompTitulo { font-weight: bold; color: #555555; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.pcCompImg { width: 100%; height: auto; border-radius: 6px; display: block; }

.posturaCardVazio { background: #f7f9fa; border-style: dashed; }
.posturaCardAdicionar { text-align: center; padding: 18px 0 10px 0; color: #b0b8c0; }
.posturaCardAdicionar .fa-male { display: block; font-size: 44px; margin-bottom: 10px; }
.listaFotosCorporal img { width: auto; max-width: 95%; max-height: 520px; } /* foto legada nao toma a tela inteira */
/* area de progresso do upload so aparece enquanto ha arquivo */
.pcColunaLado .ui-fileupload-content:not(:has(.ui-fileupload-row, tr)) { display: none; }
.pcDiferencas { margin-top: 10px; padding: 8px 10px; background: #f7f9fa; border-left: 4px solid #0095da; border-radius: 4px; }
.pcBarraFerramentas { padding: 3px 4px !important; margin-bottom: 6px; }
.pcBarraFerramentas .pcFerramentas { margin-bottom: 0; }
.pcColunaLado .panelgridPadrao td.campo { text-align: left; }
.pcColunaLado .pcItem input { flex: 0 0 90px; }
.textoAssimetria { margin-left: 8px; color: #6f6f6f; font-size: 0.9em; }
/* Antes e depois (dialogAntesDepois) */
.adMiniaturas { display: flex; flex-wrap: wrap; gap: 6px; }
.adMini { display: inline-block; border: 2px solid #e3e6ea; border-radius: 4px; cursor: pointer; padding: 0; margin: 0; }
.adMini img { width: 64px; height: 84px; object-fit: cover; display: block; border-radius: 3px; }
.adMini.adMiniAtiva { border-color: #0095da; box-shadow: 0 0 0 2px rgba(0,149,218,0.25); }
.adComparador { margin-top: 10px; text-align: center; }
.adQuadro { position: relative; width: 480px; max-width: 100%; height: 600px; margin: 0 auto; background: #f4f4f4; border: 1px solid #d5dfe8; border-radius: 6px; overflow: hidden; }
.adImg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.adLinha { position: absolute; top: 0; bottom: 0; width: 2px; background: #ffffff; box-shadow: 0 0 4px rgba(0,0,0,0.5); left: 50%; }
.adRotulo { position: absolute; top: 8px; background: rgba(0,0,0,0.55); color: #ffffff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.adRotuloAntes { left: 8px; }
.adRotuloDepois { right: 8px; }
.adRange { width: 480px; max-width: 100%; margin-top: 8px; }
/* abas coladas no que vem em cima (Consulta de Consumo IA) */
.tabSemEspaco.ui-tabs { margin-top: 10px; padding-top: 0; }
.tabSemEspaco.ui-tabs .ui-tabs-panel { padding-top: 6px; }
.tabSemEspaco.ui-tabs .ui-tabs-panel > .ui-datatable:first-child, .tabSemEspaco.ui-tabs .ui-tabs-panel > .ui-datatable:first-of-type { margin-top: 0; }
/* IA SisRUN sugere a semana: janela de passos (formPlanilha.xhtml, planilhaMensal.js) */
.planilhaIaPassos { min-height: 120px; padding: 4px 2px; font-size: 14px; }
.planilhaIaPasso { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #f0f0f0; text-align: left; }
.planilhaIaPasso .fa { width: 16px; text-align: center; }
.planilhaIaPassoFeito { color: #449D44; }
.planilhaIaPassoRodando { color: #0095da; }
.planilhaIaPassoTempo { color: #999; font-size: 12px; white-space: nowrap; }
.planilhaIaPassoErro { color: #D9534F; }

/* Gerador Inteligente (SisRUN Intelligence): base do aluno e gráfico do ciclo */
.intBase { margin: 10px 0; padding: 10px 14px; background: #f8f8f8; border-radius: 8px; font-size: 13px; text-align: left; }
.intBase div { padding: 3px 0; }
.intBaseOk .fa { color: #449D44; width: 16px; }
.intBaseAlerta { color: #8a6d3b; }
.intBaseAlerta .fa { color: #f0ad4e; width: 16px; }
.intObjetivo { margin-left: 12px; color: #444; font-size: 13px; }
.intObjetivo .fa-flag { color: #D9534F; }
.intObjetivo .fa-refresh { color: #0095da; }
.intCicloTitulo { margin: 14px 0 4px; font-weight: bold; color: #444; font-size: 14px; text-align: left; }
.intCicloResumo { color: #777; font-weight: normal; font-size: 12px; margin-left: 8px; }
.intMacro { background: #2d3e50; color: #fff; border-radius: 4px 4px 0 0; padding: 5px 10px; font-size: 12px; text-align: left; }
.intMesos { display: flex; gap: 4px; margin: 3px 0 2px; }
.intMeso { flex-basis: 0; min-width: 0; background: #eef3f8; border: 1px solid #cfdbe7; border-radius: 3px; padding: 3px 4px; font-size: 11px; color: #34495e; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.intMeso span { display: block; color: #888; font-size: 10px; }
.intGrafico { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 6px 4px 0; border-bottom: 1px solid #ccc; }
.intBarra { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; font-size: 11px; color: #555; }
.intBarra .intValor { margin-bottom: 2px; white-space: nowrap; }
.intBarra .intColuna { width: 100%; border-radius: 3px 3px 0 0; }
.intBarra .intProva { color: #D9534F; font-size: 12px; }
.intEixo { display: flex; gap: 4px; padding: 2px 4px 0; font-size: 11px; color: #888; }
.intEixo span { flex: 1; text-align: center; min-width: 0; }
.cicloBase { background: #9fd1ef; }
.cicloConstrucao { background: #0095da; }
.cicloEspecifico { background: #f0ad4e; }
.cicloPolimento { background: #5cb85c; }
.intAlivio { opacity: .45; }
.intLegenda { font-size: 12px; color: #666; margin: 6px 0 10px; text-align: left; }
/* Prévia mensal da Planilha IA */
.iaMensalPeriodo { font-size: 10px; color: #888; font-weight: normal; white-space: nowrap; }
.iaMensalData { font-size: 10px; color: #999; text-align: right; }
.modeloGradeCard.iaMensalCard { background: #e8f4fd; border-color: #b3dbf5; }
.modeloGradeCard.iaMensalProva { background: #fdecea; border-color: #f5c6cb; }
/* Gerador Inteligente: por que este treino (lampada no cartao, texto ao passar o mouse; coluna na Lista) */
.iaPorqueIcone { color: #0491fe; margin-left: 4px; cursor: help; font-size: 12px; }
.iaPorqueTexto { font-size: 12px; color: #555; }
.intLegenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }

/* Planilha: barra "Desfazer" (15 s depois de uma alteração) */
.barraDesfazer { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200; background: #323232; color: #fff; padding: 10px 18px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.3); font-size: 14px; white-space: nowrap; }
.barraDesfazer .fa-check { color: #5cb85c; }
.barraDesfazer a.barraDesfazerLink { color: #f0ad4e; font-weight: bold; margin-left: 16px; text-decoration: none; }
.barraDesfazer a.barraDesfazerLink:hover { text-decoration: underline; }
.barraDesfazerDica { color: #aaa; font-size: 12px; margin-left: 8px; }
/* aviso "CTRL ativado" das planilhas: aparece com o modo copiar ligado (um toque no Ctrl liga, outro desliga - ctrlCopiar.js) */
.avisoCtrlCopiar { display: none; font-weight: bold; color: red; }
body.ctrlCopiar .avisoCtrlCopiar { display: inline; }
.modeloAplicarEm { background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px; padding: 6px 10px; margin-bottom: 6px; font-size: 13px; max-height: 60px; overflow: auto; }
.barraDesfazer a.barraDesfazerFechar { color: #bbb; margin-left: 14px; text-decoration: none; }
.barraDesfazer a.barraDesfazerFechar:hover { color: #fff; }

/* SisRUN Intelligence: Central (pages/ia/ia.xhtml) */
.intelSaldo { margin: 10px 0 4px; padding: 8px 12px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; font-size: 13px; text-align: center; }
.intelBarra { height: 6px; background: #eee; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.intelBarra div { height: 100%; background: #0491fe; border-radius: 3px; }
.intelBarra .intelBarraAlerta { background: #e65100; }
.intelCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.intelCard.ui-panel { margin: 0; border-radius: 8px; transition: box-shadow .15s, transform .15s, border-color .15s; }
.intelCard.ui-panel .ui-panel-content { padding: 10px 12px; text-align: left; }
.intelCard a { display: block; color: #333; text-decoration: none; }
.intelCard.ui-panel:hover { border-color: #9fd2ff; box-shadow: 0 4px 12px rgba(4,145,254,.15); transform: translateY(-1px); }
.intelCardTopo { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.intelCardTopo img, .intelCardTopo .intelFa { flex: none; width: 22px; height: 22px; padding: 6px; border-radius: 50%; background: #e8f4ff; box-sizing: content-box; }
.intelCardTopo .intelFa { font-size: 18px; line-height: 22px; color: #0491fe; text-align: center; }
.intelNovo { margin-left: auto; color: green; font-weight: bold; font-size: small; }
.intelDesc { font-size: 12px; color: #555; margin: 8px 0 4px; line-height: 1.4; }
.intelUso { font-size: 11px; color: #0491fe; margin-top: 4px; }

/* Botões que usam IA (styleClass btnIntel).
   O visual dos botões só vale com a flag liberada (body.comIntelligence, template.xhtml); sem ela ficam no padrão do tema */
body.comIntelligence .ui-button.btnIntel, body.comIntelligence .ui-button.btnIntel:hover { background: linear-gradient(90deg, #0095da, #6f42c1) !important; border-color: #5b4bc4 !important; color: #fff !important; text-shadow: none !important; }
body.comIntelligence .ui-button.btnIntel .ui-icon, body.comIntelligence .ui-button.btnIntel .ui-button-text { color: #fff !important; }
/* botão de IA: o ícone é o logo do SisRUN com as estrelinhas (branco sobre o degradê) no lugar do ícone da fonte */
body.comIntelligence button.ui-button.btnIntel span.ui-icon.fa, body.comIntelligence a.ui-button.btnIntel span.ui-icon.fa { background: url("/sisrun/javax.faces.resource/images/ia-sisrun-branco.svg.xhtml?v=mx5nt5g5") no-repeat center !important; background-size: 18px 16px !important; }
body.comIntelligence button.ui-button.btnIntel span.ui-icon.fa:before, body.comIntelligence a.ui-button.btnIntel span.ui-icon.fa:before { content: none !important; }

/* Pergunte ao SisRUN: botão do cabeçalho e janela lateral (WEB-INF/template/pergunteSisrun.xhtml) */
.ui-menubar .ui-menubar-options .menuPergunte { display: inline-flex; align-items: center; margin-right: -13px; border-radius: 14px; overflow: hidden; font-weight: 600; background: linear-gradient(90deg, #0095da, #6f42c1); }
.ui-menubar .ui-menubar-options .menuPergunte:hover { box-shadow: 0 1px 6px rgba(111,66,193,.45); }
.ui-menubar .ui-menubar-options .menuPergunte a { color: #fff !important; text-decoration: none; }
/* Créditos de IA no menu (IaSaldoAvisoMB no template): cinza no normal, laranja a partir de 80% usados, vermelho quando acaba */
.ui-menubar .ui-menubar-options .menuIaSaldo { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 3px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; color: #555555 !important; background: #f3f4f6; border: 1px solid #d5d8dc; text-decoration: none; }
.ui-menubar .ui-menubar-options .menuIaSaldo .fa-bolt { color: #6f42c1; }
.ui-menubar .ui-menubar-options .menuIaSaldo.menuIaSaldoAviso { color: #8a4b00 !important; background: #fff3e0; border-color: #f0a040; }
.ui-menubar .ui-menubar-options .menuIaSaldo.menuIaSaldoAviso .fa-bolt { color: #e65100; }
.ui-menubar .ui-menubar-options .menuIaSaldo.menuIaSaldoFim { color: #a12622 !important; background: #fdecea; border-color: #e0605a; }
.ui-menubar .ui-menubar-options .menuIaSaldo.menuIaSaldoFim .fa-bolt { color: #a12622; }
.ui-menubar .ui-menubar-options .menuIaSaldo { position: relative; }
.ui-menubar .ui-menubar-options .menuIaSaldo .menuIaSaldoDica { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 1000; padding: 4px 8px; border-radius: 3px; background: #444444; color: #ffffff; font-size: 12px; font-weight: normal; white-space: nowrap; pointer-events: none; }
.ui-menubar .ui-menubar-options .menuIaSaldo:hover .menuIaSaldoDica { display: block; }
.ui-menubar .ui-menubar-options .menuPergunte a.menuPergunteLogo { display: inline-flex; align-items: center; padding: 4px 7px 4px 10px; border-right: 1px solid rgba(255,255,255,.35); }
.ui-menubar .ui-menubar-options .menuPergunte a.menuPergunteTexto { padding: 4px 12px 4px 8px; }
.ui-menubar .ui-menubar-options .menuPergunte a:hover { background: rgba(255,255,255,.15); }
.pergunteDrawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: #fff; box-shadow: -4px 0 18px rgba(0,0,0,.18); z-index: 1100; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .2s ease; font-size: 13px; }
.pergunteDrawer.pergunteAberto { transform: translateX(0); }
.pergunteTopo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(90deg, #eef6fc, #f1eefc); border-bottom: 1px solid #e3e3e3; text-align: left; }
.pergunteTopo b { font-size: 15px; color: #2d3e50; }
.pergunteSub { font-size: 11px; color: #666; }
.pergunteFechar { margin-left: auto; font-size: 24px; line-height: 1; color: #888; text-decoration: none; }
.pergunteFechar:hover { color: #333; text-decoration: none; }
.pergunteChip { margin: 8px 12px 0; padding: 4px 10px; border-radius: 12px; background: #f1eefc; color: #5b3fb0; font-size: 12px; text-align: left; }
.pergunteForm { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pergunteConversa { flex: 1; overflow-y: auto; padding: 10px 12px; text-align: left; }
.pergunteBoasVindas { color: #555; margin-bottom: 8px; }
a.pergunteSugestao { display: block; margin: 6px 0; padding: 7px 10px; border: 1px solid #d9d2f3; border-radius: 8px; color: #5b3fb0; text-decoration: none; background: #faf9ff; }
a.pergunteSugestao:hover { background: #f1eefc; text-decoration: none; }
.pergunteMsg { margin: 8px 0; padding: 8px 11px; border-radius: 10px; white-space: pre-line; line-height: 1.45; max-width: 92%; word-wrap: break-word; }
.pergunteMsgEu { margin-left: auto; background: #0095da; color: #fff; border-bottom-right-radius: 2px; }
.pergunteMsgIa { background: #f3f4f6; color: #222; border-bottom-left-radius: 2px; }
.pergunteAcoes { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 8px; }
a.pergunteAcao { display: inline-block; padding: 4px 10px; border-radius: 12px; border: 1px solid #6f42c1; color: #6f42c1; text-decoration: none; font-size: 12px; background: #fff; }
a.pergunteAcao:hover { background: #6f42c1; color: #fff; text-decoration: none; }
.pergunteAguarde { color: #6f42c1; margin: 8px 0; }
.pergunteRodape { display: flex; gap: 8px; align-items: stretch; padding: 10px 12px 4px; border-top: 1px solid #eee; }
.pergunteRodape textarea { flex: 1; resize: none; font-size: 13px; box-sizing: border-box; margin: 0; }
.pergunteRodape .ui-button.btnIntel { width: 44px; min-height: 44px; margin: 0; flex: none; }
.pergunteRodape2 { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px 10px; font-size: 11px; color: #888; }

/* Compra de crédito de IA (Consumo de IA): pacotes e formas de pagamento, no azul do SisRUN */
.creditoTexto { font-size: 13px; color: #555; margin-bottom: 10px; text-align: center; line-height: 1.5; }
.creditoPacotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
a.creditoPacote { display: block; padding: 12px 8px; border: 1px solid #dcdcdc; border-radius: 8px; background: #fff; color: #333; text-align: center; text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.creditoPacote:hover { border-color: #9fd2ff; box-shadow: 0 4px 12px rgba(4,145,254,.18); transform: translateY(-1px); text-decoration: none; }
.creditoPacoteValor { font-size: 16px; font-weight: bold; color: #0491fe; white-space: nowrap; }
.creditoPacoteRende { font-size: 11px; color: #666; margin: 6px 0 8px; min-height: 28px; line-height: 1.3; }
.creditoPacoteBotao { display: inline-block; padding: 3px 14px; border-radius: 12px; background: #0491fe; color: #fff; font-size: 12px; }
.creditoFormas { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
a.creditoAbrir { display: inline-block; padding: 8px 18px; border-radius: 6px; background: #0491fe; color: #fff; font-weight: bold; text-decoration: none; }
a.creditoAbrir:hover { background: #037ad6; color: #fff; text-decoration: none; }
@media (max-width: 600px) { .creditoPacotes { grid-template-columns: repeat(2, 1fr); } }

/* Nível da IA (Consumo de IA): custo de cada nível na tabela */
.nivelCusto { display: inline-block; margin-right: 10px; white-space: nowrap; }
.creditoFormas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.creditoFormaIcone { font-size: 24px; color: #0491fe; }
.creditoFormaNome { font-weight: bold; font-size: 14px; margin-top: 4px; }
a.creditoPacote.creditoFormaAtiva { border-color: #0491fe; box-shadow: 0 0 0 2px rgba(4,145,254,.25); }

/* Selos "novo" e "antiga" no menu (Agenda e Presença x Lista de Presença antiga, 02/11/2026) */
.menu-sistema .menuItemNovo > .ui-menuitem-text::after, .menu-sistema a.menuItemNovo .ui-menuitem-text::after,
.menu-sistema .menuItemAntigo > .ui-menuitem-text::after, .menu-sistema a.menuItemAntigo .ui-menuitem-text::after {
    display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: 10px; font-weight: bold; line-height: 15px; vertical-align: 1px; }
.menu-sistema .menuItemNovo > .ui-menuitem-text::after, .menu-sistema a.menuItemNovo .ui-menuitem-text::after { content: "novo"; background: #e7f6ea; color: #2e7d32; }
.menu-sistema .menuItemAntigo > .ui-menuitem-text::after, .menu-sistema a.menuItemAntigo .ui-menuitem-text::after { content: "antiga"; background: #f1f1f1; color: #888; }

/* Buscar tela no canto direito do menu (resources/js/buscaTela.js) */
.ui-menubar .ui-menubar-options .buscaTela { position: relative; display: inline-block; vertical-align: middle; margin-right: 10px; }
.ui-menubar .ui-menubar-options .buscaTela .fa-search { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #999; font-size: 12px; pointer-events: none; }
.ui-menubar .ui-menubar-options .buscaTela input { width: 120px; padding: 4px 8px 4px 25px; border: 1px solid #d5d5d5; border-radius: 14px; font-size: 12px; background: #fff; outline: none; transition: width .15s, border-color .15s; }
.ui-menubar .ui-menubar-options .buscaTela input:focus { width: 210px; border-color: #0491fe; }
.buscaTelaLista { display: none; position: absolute; right: 0; top: 30px; width: 320px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 1200; padding: 4px 0; text-align: left; }
.buscaTelaItem { padding: 6px 12px; cursor: pointer; line-height: 1.3; }
.buscaTelaItem b { display: block; font-size: 13px; color: #333; }
.buscaTelaItem span { font-size: 11px; color: #888; }
.buscaTelaItem:hover, .buscaTelaItem.buscaTelaAtivo { background: #e8f4ff; }
.buscaTelaVazio { padding: 8px 12px; font-size: 12px; color: #999; }
/* submenus do menu do sistema crescem com o texto (cabe o selo "novo" sem quebrar a seta do submenu) */
.menu-sistema .ui-menu-child { width: auto !important; min-width: 12.5em; white-space: nowrap; }
.menu-sistema .ui-menu-child .ui-menuitem-link { padding-right: 24px; box-sizing: border-box; }
.menu-sistema .ui-menu-child .ui-menu-parent > .ui-menuitem-link { position: relative; padding-right: 28px !important; box-sizing: border-box; }
.menu-sistema .ui-menu-child .ui-menu-parent > .ui-menuitem-link > .ui-icon { position: absolute; right: 6px; top: 50%; margin-top: -8px; float: none; }
/* Início: casinha discreta antes do Buscar tela */
.ui-menubar .ui-menubar-options a.menuHome { display: inline-block; vertical-align: middle; margin-right: 8px; padding: 2px 4px; color: #888 !important; font-size: 17px; text-decoration: none; }
.ui-menubar .ui-menubar-options a.menuHome:hover { color: #0491fe !important; }
/* Buscar tela, créditos de IA e Pergunte ao SisRUN do mesmo tamanho, alinhados no meio da barra */
.ui-menubar .ui-menubar-options .buscaTela input { height: 26px; box-sizing: border-box; }
.ui-menubar .ui-menubar-options .menuIaSaldo { height: 26px; box-sizing: border-box; padding: 0 10px; vertical-align: middle; }
.ui-menubar .ui-menubar-options .menuPergunte { height: 26px; font-size: 12px; vertical-align: middle; }
.ui-menubar .ui-menubar-options .menuPergunte a.menuPergunteLogo, .ui-menubar .ui-menubar-options .menuPergunte a.menuPergunteTexto { display: inline-flex; align-items: center; height: 26px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }

/* Janelas da IA: quando o conteúdo não cabe na altura da tela, rola por dentro (o cabeçalho com o X fica fixo) */
.dialogRolagem .ui-dialog-content { max-height: calc(100vh - 110px); overflow-y: auto; overflow-x: hidden; }
/* Resumo da semana do aluno (SisRUN Intelligence, planilha: pages/planilha/dialogResumoSemanaIa.xhtml) */
.resumoIaCaixa { position: relative; }
a.resumoIaCanto { position: absolute; top: 4px; right: 6px; z-index: 2; line-height: 0; }
a.resumoIaCanto:hover img { transform: scale(1.12); }
/* Estratégia de Prova (SisRUN Intelligence, WEB-INF/template/dialogEstrategiaProva.xhtml): parciais no ritmo alvo, lado a lado */
.estrategiaParciais { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.estrategiaParcial { display: inline-block; padding: 2px 8px; border: 1px solid #e3e3e3; border-radius: 4px; background: #fafafa; font-size: 0.92em; white-space: nowrap; }

/* Padrão SisRUN (22/10/2026): mensagem com várias frases mostra uma frase por linha (o JsfUtil.frases quebra no ponto final) */
.ui-messages-error-summary, .ui-messages-info-summary, .ui-messages-warn-summary, .ui-messages-fatal-summary,
.ui-messages-error-detail, .ui-messages-info-detail, .ui-messages-warn-detail, .ui-messages-fatal-detail,
.ui-growl-message p, .ui-growl-message span { white-space: pre-line; }
/* SisRUN Intelligence: uma aba por momento do trabalho (Planejar, Acompanhar, Analisar, Configurar) */
.intelAbas .ui-tabs-nav a, .intelAbas .ui-tabs-nav .fa { color: #333333 !important; }
.intelAbas .ui-tabs-nav .fa { margin-right: 4px; }
.intelAbas .ui-tabs-panel { padding: 8px 0 0 0; }
/* Planilha: menus Treinos e Aluno da barra (p:menuButton) com o texto */
.toolbarPlanilhaCompacta .planilhaMenuBarra .ui-button { width: auto !important; }
.toolbarPlanilhaCompacta .planilhaMenuBarra .ui-button .ui-button-text { padding-top: 4px; padding-bottom: 4px; }
/* Planilha: barra da lista de alunos numa linha só até em notebook (botões menores, separadores justos) */
.toolbarAlunosUmaLinha > .ui-toolbar-group-left { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 2px; float: none; }
.toolbarAlunosUmaLinha .ui-button { width: 28px !important; height: 26px; margin: 0; }
.toolbarAlunosUmaLinha .ui-separator { margin: 0; }
.toolbarAlunosUmaLinha .ui-spacer, .toolbarAlunosUmaLinha span[style*="width:2px"] { display: none; }
/* Tela baixa (notebook): janela mais alta que a tela ganha rolagem por dentro em vez de cortar o fim (ex.: Ciclos de Treinamento da planilha).
   Só até 900px de altura, para não mudar nada nos monitores grandes; mesma regra do .dialogRolagem. */
@media (max-height: 900px) {
    .ui-dialog.ui-widget .ui-dialog-content { max-height: calc(100vh - 90px); overflow-y: auto; }
    /* .my-dialogs abre 50px abaixo do topo */
    .ui-dialog.ui-widget.my-dialogs .ui-dialog-content { max-height: calc(100vh - 140px); }
    /* .dialogRolagem (janelas da IA) mantém a folga de 110px dela */
    .ui-dialog.ui-widget.dialogRolagem .ui-dialog-content { max-height: calc(100vh - 110px); }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Presença e Aulas (Presença V2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.apPeriodo { text-align: center; font-size: 1.15em; font-weight: bold; color: #333333; margin: 12px 0 4px; }
.apTotais { margin: 0 auto 8px; }
.apTotais td { padding: 4px 8px !important; }
.apNumero { font-weight: bold; font-variant-numeric: tabular-nums; }
.apStatus { font-weight: bold; }
.apStatusPENDENTE { color: #999999; }
.apStatusPRESENTE { color: #2e7d32; }
.apStatusATRASO { color: #c58f00; }
.apStatusFALTA { color: #c0392b; }
.apStatusFALTA_JUSTIFICADA { color: #7f8c8d; }
.apLinhaCancelada td { color: #aaaaaa !important; }
.apBotao.ui-button { width: 92px; margin: 2px 1px; }
.apBotao.ui-button.ui-state-disabled { opacity: 0.3 !important; }
.apDesfazer { text-align: center; margin: 6px 0; color: #555555; }
.apTipo { font-weight: bold; }
.apTipoTREINAO { color: #1a5eb8; }
.apTipoATENDIMENTO { color: #7c3aed; }
/* Agenda: visão Mês (p:schedule). Mesmas cores dos tipos; cancelada apagada e riscada */
.fc-event.apEv { border: 0; color: #fff !important; padding: 1px 4px; cursor: pointer; }
.fc-event.apEvAULA { background-color: #5b6b7f; }
.fc-event.apEvTREINAO { background-color: #1a5eb8; }
.fc-event.apEvATENDIMENTO { background-color: #7c3aed; }
.fc-event.apEvCancelada { opacity: 0.5; text-decoration: line-through; }
.apResp { font-weight: bold; }
.apRespVOU { color: #2e7d32; }
.apRespTALVEZ { color: #c58f00; }
/* atividade do relógio no horário da aula (lista de presença) */
.apAtividade { margin-top: 4px; font-size: 0.85em; color: #2e7d32; line-height: 1.25; }
/* Adicionar alunos: campo de várias etiquetas com largura de campo normal */
.apAddAlunos { display: inline-block; vertical-align: middle; }
.apAddAlunos .ui-autocomplete-multiple-container { width: 420px; min-height: 30px; text-align: left; }
.apAddAlunos .ui-autocomplete-input-token input { width: 260px; }
/* Home: quadro Agenda (linha clicável com o dia num bloco, como o cartão da Agenda no app) */
a.agHomeLinha { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #f0f0f0; color: inherit; text-decoration: none; border-radius: 6px; }
a.agHomeLinha:hover { background: #f5f8fc; text-decoration: none; }
.agHomeDia { flex: none; width: 46px; padding: 4px 0; border-radius: 8px; text-align: center; line-height: 1.1; background: #eef3fb; color: #1a5eb8; }
.agHomeDia b { display: block; font-size: 1.25em; }
.agHomeDia small { display: block; font-size: 0.68em; font-weight: bold; letter-spacing: 0.04em; }
.agHomeDiaATENDIMENTO { background: #f3eefe; color: #7c3aed; }
.agHomeDiaAULA { background: #eef1f4; color: #5b6b7f; }
.agHomeTexto { flex: 1 1 auto; min-width: 0; text-align: left; }
.agHomeNome { display: block; font-weight: bold; color: #333333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agHomeSub { display: block; font-size: 0.85em; color: #777777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agHomeTipo { font-weight: bold; }
.agHomeTipoTREINAO { color: #1a5eb8; }
.agHomeTipoATENDIMENTO { color: #7c3aed; }
.agHomeSeta { flex: none; color: #bbbbbb; }
.apRespNAO_VOU { color: #c0392b; }
.apRespNENHUMA { color: #999999; font-weight: normal; }

/* Dica de ajuda: "?" cinza quadradinho na frente do rótulo; a explicação fica no tooltip (p:tooltip global do template).
   No title, &#10; quebra a linha. Uso: <span class="dicaAjuda" title="Explicação">?</span> */
.dicaAjuda { display: inline-block; width: 14px; height: 14px; line-height: 14px; margin-left: 5px; border-radius: 3px; background: #e6e6e6; color: #777777; font-size: 10px; font-weight: bold; text-align: center; cursor: help; vertical-align: middle; }
.dicaAjuda:hover { background: #d4d4d4; color: #555555; }
.dicaAjudaTooltip.ui-tooltip .ui-tooltip-text { white-space: pre-line; max-width: 380px; text-align: left; font-size: 12px; line-height: 1.45; }

/* Loja (card 1158): miniatura do produto antes do nome (Estoque, Resultados) e quadros dos gráficos lado a lado (Resultados) */
.fotoProdutoLoja { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
.semFotoProdutoLoja { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 4px; background: #eef3f8; color: #9aa9b8; vertical-align: middle; }
.linhaGraficosLoja { display: flex; gap: 10px; margin-top: 10px; }
.quadroGraficoLoja { flex: 1 1 0; min-width: 0; position: relative; }
.dicaQuadroLoja { position: absolute; top: 7px; right: 10px; }
