[v-cloak] {
    display: none;
}

.serf-filter-bar {
    display: flex;
    align-items: stretch;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.serf-field {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.serf-field:nth-last-child(-n + 2) {
    border-right: none;
}

.serf-field:hover {
    background: #fafafa;
}

.serf-field label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.serf-field input,
.serf-field .flatpickr-input {
    width: 100%;
    min-width: 0;
    border: none;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    background: transparent;
    box-sizing: border-box;
}

.serf-field input:focus,
.serf-field .flatpickr-input:focus {
    outline: none;
}

.serf-field input {
    cursor: text;
}

.serf-field input::placeholder,
.serf-field .flatpickr-input::placeholder {
    color: #999;
}

.serf-select-display {
    width: 100%;
    min-width: 0;
    border: none;
    padding: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.serf-dropdown-field {
    position: relative;
    padding-right: 42px;
}

.serf-dropdown-field::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    transition: border-color 0.2s ease;
}

.serf-dropdown-field:hover::after,
.serf-dropdown-field.is-open::after {
    border-color: #666;
}

.serf-dropdown-field.is-open {
    background: #fafafa;
}

.serf-actions {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 8px;
}

.serf-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border: none;
    border-radius: 15px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.serf-actions button:hover {
    transform: translateY(-1px);
}

.serf-actions button[type="submit"] {
    background: #cca352;
    color: #fff;
}

.serf-actions button[type="submit"]:hover {
    background: #b5834a;
}

.serf-actions button[type="button"] {
    background: #f5f5f5;
    color: #222;
}

.serf-actions button[type="button"]:hover {
    background: #ececec;
}

.serf-floating-dropdown {
    position: absolute;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 999999;
}

.serf-dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
}

.serf-dropdown-item:hover {
    background: #f5f5f5;
}

.serf-dropdown-item.active {
    background: #f0f0f0;
    font-weight: 600;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #cca352 !important;
    border-color: #cca352 !important;
    color: #fff;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #b5834a !important;
    border-color: #b5834a !important;
}

@media (max-width: 768px) {
    .serf-filter-bar {
        flex-direction: column;
        border-radius: 16px;
    }

    .serf-field {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .serf-field:last-of-type {
        border-bottom: none;
    }

    .serf-actions {
        justify-content: space-between;
    }
}
