﻿.autocomplete-container {
    position: relative;
}

.suggestions-list {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

    .suggestions-list .list-group-item-action {
        cursor: pointer;
    }


.validation-message {
    color: #dc3545;
    font-size: 1.0em;
    margin-top: 0.25rem;
    font-weight: bold;
}


/* FullCalendar Custom Styles */
.fc-event-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-timegrid-slot {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 60px !important;
}

.fc-non-business {
    background: none !important;
}

.agenda-tooltip {
    position: absolute;
    z-index: 10001; /* Garante que fique sobre tudo */
    background-color: #343a40; /* Fundo escuro */
    color: #fff; /* Texto branco */
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none; /* Impede que o mouse interaja com o tooltip */
}

    .agenda-tooltip strong {
        color: #17a2b8; /* Ciano para destaque */
    }

.agenda-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.legenda-cor {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}

.fc-event {
    width: 100% !important;
    height: 100% !important;
    margin: 0px !important;
}

.fc-event-title {
    color: #757171 !important;
}

.fc-bg-event {
    opacity: 0.5 !important;
}

.fc-event.event-cancelado {
    width: 48% !important;
    float: right;
    font-size: 0.8rem;
}

.fc-blocked {
    background-color: #fff !important;
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.invalid-feedback{
    color: #dc3545 !important;
}

.swal-mini {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    min-width: 220px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.swal-mini-title {
    font-size: 0.8rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 600 !important;
}

.swal-mini-text {
    font-size: 0.7rem !important;
    line-height: 1.1rem !important;
}

.page-title {
    margin-top: 10px !important;
}

.patient-info > div {
    line-height: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sticky-header {
    position: sticky;
    top: 0px !important;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-area {
    max-height: calc(100vh - 266px);
    overflow-y: auto;
    padding-right: 8px;
    margin-top:10px;
}

.compact-info {
    line-height: 1.1rem !important;
}

.compact-info > div {
        margin: 0 !important;
        padding: 0 !important;
    }

.compact-info strong {
        font-weight: 600;
    }

.compact-info span,
.compact-info p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1rem !important;
    }

.sticky-header h4 {
    margin-bottom: 0.3rem !important;
}

.footer{
    height:30px !important;
}

.modal-xl {
    max-width: 95vw !important;
}

.overlay-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.dashboard-watermark {
    position: fixed;
    top: 50%;
    left: calc(50% + 80px);
    width: 50%;
    height: 50%;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.08; /* Deixa suave */
    filter: blur(1px); /* Desfoque */
    pointer-events: none; /* Não interfere em cliques */
    z-index: 0;
}

/* Estilo para Cartões de dashboard */
.metric-card {
    border: none;
    color: #fff; /* Cor do texto dentro do cartão */
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-card.color-blue {
    background-color: #007bff; /* Azul vibrante */
}

.metric-card.color-red {
    background-color: #dc3545; /* Vermelho vibrante */
}

.metric-card.color-green {
    background-color: #28a745; /* Verde vibrante */
}

.card-metricas {
    padding-top: 30px;
    padding-bottom: 0px !important;
    padding-left: 12px;
    padding-right: 12px;
}

.dashboard-card {
    padding: 12px !important;
    border-radius: 10px;
    border: 2px solid rgb(0, 0, 0, 0,05);
}

.dashboard-card h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.dashboard-chart {
    height: auto;
}

.filtro-popover {
    position: absolute;
    top: 40px;
    right: 10px;
    width: 340px;
    z-index: 20;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    padding: 10px 12px;
    animation: filtroFadeIn .15s ease-out;
}

.total{
    color: #fff;
}

.apexcharts-datalabel {
    fill: #fff !important;
    color: #fff !important;
}

#grafico-faltas .apexcharts-data-labels rect {
    fill: #f44336 !important; /* fundo vermelho */
    stroke: #f44336 !important; /* borda igual ao fundo */
}

#grafico-faltas .apexcharts-data-labels text {
    fill: #ffffff !important; /* número branco */
}

#grafico-atendimentos .apexcharts-data-labels rect {
    fill: #007bff !important; /* fundo azul */
    stroke: #007bff !important; /* borda igual ao fundo */
}

#grafico-atendimentos .apexcharts-data-labels text {
    fill: #ffffff !important; /* número branco */
}

.modal .modal-dialog {
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
}

.modal .modal-dialog .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.modal .modal-dialog .modal-body {
    max-height: calc(100vh - 11rem);
    overflow-y: auto;
}

.dropdown-item{
    cursor: pointer !important;
}

.row > [class^="col-"] {
    display: flex;
    flex-direction: column;
}

@keyframes filtroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}








