/* Correção específica para setas de navegação do DatePickerRange */
/* Versão simplificada para calendar_orientation="vertical" */

/* Reexibir os botões nativos do React-Dates/Airbnb */
.DayPickerNavigation_button__default,
.DayPickerNavigation_button__horizontal,
.DayPickerNavigation_button__vertical,
.DayPickerNavigation_button__verticalDefault {
    position: absolute;
    top: 18px;
    width: 34px;
    height: 34px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* SVG das setas nativas */
.DayPickerNavigation_svg__horizontal,
.DayPickerNavigation_svg__vertical {
    width: 100%;
    height: 100%;
    fill: var(--bs-gray-700, #495057);
}

/* Posicionamento dos botões */
.DayPickerNavigation_leftButton__horizontal,
.DayPickerNavigation_leftButton__vertical {
    left: 22px;
}

.DayPickerNavigation_rightButton__horizontal,
.DayPickerNavigation_rightButton__vertical {
    right: 22px;
}

/* Hover effect */
.DayPickerNavigation_button__default:hover,
.DayPickerNavigation_button__horizontal:hover,
.DayPickerNavigation_button__vertical:hover {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
}

.DayPickerNavigation_button__default:hover svg,
.DayPickerNavigation_button__horizontal:hover svg,
.DayPickerNavigation_button__vertical:hover svg {
    fill: white;
}

/* Se os SVGs não aparecerem, usar caracteres como fallback */
.DayPickerNavigation_leftButton__horizontal::after,
.DayPickerNavigation_leftButton__vertical::after {
    content: "‹";
    font-size: 20px;
    font-weight: bold;
    color: var(--bs-gray-700, #495057);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.DayPickerNavigation_rightButton__horizontal::after,
.DayPickerNavigation_rightButton__vertical::after {
    content: "›";
    font-size: 20px;
    font-weight: bold;
    color: var(--bs-gray-700, #495057);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.DayPickerNavigation_button__horizontal:hover::after,
.DayPickerNavigation_button__vertical:hover::after {
    color: white;
}

/* Container do calendário vertical */
.DateRangePicker_picker {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
}

/* Ajuste para calendário vertical com 2 meses */
.DateRangePicker_picker__vertical {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    z-index: 1050;
}

/* Garantir que o calendário não seja cortado */
.DateRangePickerInput__withBorder {
    position: relative;
}

/* Melhorar aparência geral */
.CalendarMonth_caption {
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-dark, #212529);
    padding: 10px 0;
}

.CalendarDay__default {
    border: 1px solid transparent;
    color: var(--bs-dark, #212529);
}

.CalendarDay__default:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.CalendarDay__selected,
.CalendarDay__selected:hover {
    background: var(--bs-primary, #0d6efd);
    color: white;
    border-radius: 4px;
}

.CalendarDay__selected_span {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-dark, #212529);
}

/* Sidebar overflow fix */
.sidebar-container {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}