
.color-picker {
    position: relative;
    display: inline-block;
}

.selected-color {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    background-color: #03a9f4;
}

.color-options {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    z-index: 1;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
}

.color-option:hover {
    transform: scale(1.1);
}

.circle-color{
    margin-left: 5px;
    padding-left: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 50%;
}

.evento-concluido a {
    text-decoration: line-through; /* Aplica decoração de texto riscado */
    color: #4a4a4a; /* Cinza escuro para ler no fundo claro dos concluídos */
}

/*
 * Eventos concluídos usam fundo #F0F0F0. O FullCalendar força texto branco
 * em .fc-h-event/.fc-v-event (.fc-event-main), o que deixa o dia inteiro ilegível.
 * Título customizado (.agenda-evento-titulo) também precisa herdar o cinza escuro.
 */
.fc .evento-concluido .fc-event-main,
.fc .evento-concluido .fc-event-title,
.fc .evento-concluido .fc-event-time,
.fc .evento-concluido .agenda-evento-titulo,
.fc .evento-concluido .agenda-evento-conteudo,
.fc .cr-bloq .fc-event-main,
.fc .cr-bloq .fc-event-title,
.fc .cr-bloq .fc-event-time,
.fc .cr-bloq .agenda-evento-titulo,
.fc .cr-bloq .agenda-evento-conteudo {
    color: #4a4a4a;
}

/* FullCalendar: eventos somente leitura não podem vazar texto para a célula ao lado */
.fc .fc-daygrid-dot-event.cr-bloq {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    color: #4a4a4a;
}

.fc .fc-daygrid-dot-event.cr-bloq .fc-event-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a4a4a;
}

.fc .fc-daygrid-block-event.cr-bloq {
    max-width: 100%;
    overflow: hidden;
}

.fc .fc-daygrid-block-event.cr-bloq .fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a4a4a;
}

.fc .fc-timegrid-event.cr-bloq .fc-event-main,
.fc .fc-timegrid-event.cr-bloq .fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: #4a4a4a;
}

.fc .fc-list-event.cr-bloq .fc-list-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: #4a4a4a;
}

/* Campo de pesquisa da agenda (barra de filtros e toolbar do FullCalendar) */
.agenda-pesquisa-box {
    width: 230px;
    max-width: 100%;
}
.agenda-pesquisa-box .input-group-text {
    background: #f8f9fa;
    color: #6c757d;
}
.agenda-pesquisa-box .form-control {
    color: #495057;
    background: #fff;
}
.fc .agenda-pesquisa-box {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 6px 0 0;
}
.fc .agenda-pesquisa-box .form-control,
.fc .agenda-pesquisa-box .input-group-text {
    height: calc(1.5em + 0.5rem + 2px);
}
@media (max-width: 576px) {
    .agenda-pesquisa-box {
        width: 100%;
    }
}