.date-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.date-field > input:first-child {
    width: 100%;
    min-width: 0;
    padding-right: 3rem;
}

.date-field-calendar,
.date-field-icon {
    position: absolute;
    right: .5rem;
    width: 2rem;
    height: 2rem;
}

.date-field-icon {
    pointer-events: none;
    background: center / 1.25rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7057' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
}

.date-field-calendar {
    opacity: 0;
    cursor: pointer;
    padding: 0;
    border: 0;
}

.date-field-calendar::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.date-field:has(.date-field-calendar:focus-visible) .date-field-icon {
    outline: 2px solid #3d7057;
    outline-offset: 2px;
    border-radius: .25rem;
}

.date-field:has(input:disabled) .date-field-icon {
    opacity: .4;
}
