:root {
    --lawoffice-brand: #1d4ed8;
}

.brand-mark {
    align-items: center;
    background: var(--lawoffice-brand);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    letter-spacing: 0;
    width: 2rem;
}

.brand-mark-lg {
    font-size: 1rem;
    height: 3rem;
    width: 3rem;
}

.card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.card-link:hover {
    border-color: var(--lawoffice-brand);
    color: inherit;
    transform: translateY(-1px);
}

/* ─── AGENDA CALENDÁRIO ─── */
#agenda-calendario {
    min-height: 500px;
}

#agenda-calendario .fc-daygrid-event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .75rem;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
}

#agenda-calendario .fc-daygrid-event:hover {
    filter: brightness(1.1);
}

#agenda-calendario .fc-event-title {
    font-weight: 500;
}

#agenda-calendario .fc-timegrid-event {
    border-radius: 4px;
    font-size: .75rem;
    padding: 2px 4px;
}

#agenda-calendario .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

#agenda-calendario .fc-button-primary {
    background-color: var(--lawoffice-brand);
    border-color: var(--lawoffice-brand);
}

#agenda-calendario .fc-button-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

#agenda-calendario .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

#agenda-calendario .fc-day-today {
    background-color: rgba(30, 64, 175, 0.05) !important;
}

#agenda-calendario .fc-highlight {
    background-color: rgba(30, 64, 175, 0.1);
}

#agenda-calendario .fc-popover {
    z-index: 1050;
}

/* Mini legenda na sidebar do calendário */
.filtro-tipo + .form-check-label {
    font-size: .85rem;
}

/* ─── AUTOCOMPLETE ─── */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9dbde;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: .85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color .1s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f0f4ff;
}

.autocomplete-item small {
    font-size: .8rem;
}

/* Em telas pequenas, autocomplete fica com largura total */
@media (max-width: 768px) {
    .autocomplete-suggestions {
        max-height: 180px;
    }
}
