.date-scroller-wrapper {
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: relative; /* Dla pozycjonowania kalendarza */
    border: 1px solid #e5e5e5;
}

.dates-wrapper {
    flex: 1;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: thin;
    position: relative;
}

.dates-wrapper::-webkit-scrollbar {
    height: 4px;
}

.dates-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dates-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scrollable-dates {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 70px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.date-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.date-item.active {
    background-color: #0066cc;
    color: #fff;
    font-weight: 500;
    border-color: #0066cc;
}

/* Style dla Flatpickr - pozycjonowanie i wygląd */
.flatpickr-calendar {
    margin-top: 8px !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 1000 !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    background: #fff !important;
}

.flatpickr-calendar.open {
    animation: fpFadeInDown 200ms ease-out !important;
}

@keyframes fpFadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.date-item .name {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.date-item .date {
    font-size: 14px;
    font-weight: 500;
}

.calendar-icon-wrapper {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: #495057;
    border: 1px solid #ced4da;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.calendar-icon-wrapper:hover {
    background-color: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
}

.calendar-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

/* Style dla ukrytego inputa daty */
.hidden-date-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}