/* Calendário Opinor — dias/meses no idioma do sistema (não do SO) */
.opinor-date-picker {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.opinor-date-picker--field {
    min-width: 0;
}

.opinor-date-picker-trigger {
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.opinor-date-picker-trigger::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: #d97706;
    font-size: 14px;
}

.opinor-date-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 12050;
    min-width: 260px;
    background: #fff;
    border: 1px solid rgba(232, 150, 12, 0.45);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(84, 57, 1, 0.18);
    padding: 12px;
}

.opinor-date-popover[hidden] {
    display: none;
}

.opinor-date-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.opinor-date-popover-head span {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #3E2A1A;
    text-transform: capitalize;
}

.opinor-date-nav {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(232, 150, 12, 0.35);
    background: #faf8f5;
    color: #3E2A1A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.opinor-date-nav:hover {
    background: #f0e6d8;
}

.opinor-date-weekdays,
.opinor-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.opinor-date-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: capitalize;
    padding: 4px 0;
}

.opinor-date-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #3e3a35;
    cursor: pointer;
}

.opinor-date-day:hover {
    background: #faf8f5;
}

.opinor-date-day.is-today {
    box-shadow: inset 0 0 0 1px rgba(62, 42, 26, 0.35);
}

.opinor-date-day.is-selected {
    background: #3E2A1A;
    color: #fff;
}

.opinor-date-day--empty {
    pointer-events: none;
}

/* Compatibilidade com classes legadas da agenda */
.agenda-date-picker-btn {
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.agenda-date-picker .opinor-date-popover,
.agenda-date-picker .agenda-date-popover {
    z-index: 12050;
}
